]> git.hungrycats.org Git - linux/commit
btrfs: remove the v1 space cache writeout from the transaction commit
authorTal Zussman <tz2294@columbia.edu>
Thu, 17 Sep 2026 03:59:58 +0000 (23:59 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 17 Sep 2026 17:49:47 +0000 (19:49 +0200)
commit1c38cbb3d2c51fdbc96b67c98349802f617720f5
tree4f716f2573c2f8aee4a82c5abb0159148e28cd16
parent008137ce11439e69527212afad480c92cfef1eed
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: Claude:claude-fable-5-1
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