]> git.hungrycats.org Git - linux/commit
btrfs: remove the v1 space cache writeout from the transaction commit
authorTal Zussman <tz2294@columbia.edu>
Thu, 15 Oct 2026 14:43:17 +0000 (10:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Oct 2026 17:06:56 +0000 (19:06 +0200)
commit54d5c9c8174584cb5efe4f39e21d45a7c34da65b
tree7823a3b9935d41b13ce44db09fa2e832f8d6b49e
parentf6c8164dc521ff76892544421b83e9ec5a43ac17
btrfs: remove the v1 space cache writeout from the transaction commit

Nothing sets SPACE_CACHE anymore, so the dirty block group writers never
have a cache to write out or wait for. Remove cache_save_setup(),
btrfs_setup_space_cache(), the io_list handling, the io_bgs list and
BTRFS_TRANS_CACHE_ENOSPC, and the abort-time cleanup of in-flight cache
IO.

The -ENOENT retry in btrfs_write_dirty_block_groups() handled a free
space endio worker creating a block group during the commit critical
section, so drop it too.

Assisted-by: LLM
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/disk-io.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h