mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-27 19:36:52 +00:00
When the btree stops referencing a block and frees it we can also forget it so that it isn't uselessly written to disk. Callers who forget are careful to only unlock and release the block ref after freeing it. They won't be confused if something allocates the block and starts using it. Signed-off-by: Zach Brown <zab@versity.com> Reviewed-by: Mark Fasheh <mfasheh@versity.com>