]> git.hungrycats.org Git - linux/commit
btrfs: remove the v1 space cache write path
authorTal Zussman <tz2294@columbia.edu>
Thu, 17 Sep 2026 04:00:00 +0000 (00:00 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 17 Sep 2026 17:49:47 +0000 (19:49 +0200)
commite3437ffad54d0220b3a897e9b89085ef809613e9
tree695cd52018ddc211fd1ba4b076444e3299c51eba
parent79eb7449cd70675c0fdf5ed504f086de924da721
btrfs: remove the v1 space cache write path

Nothing writes out a v1 space cache any more. Remove the writers and
their io_ctl helpers, along with create_free_space_inode() and
btrfs_prealloc_file_range_trans(), whose only user was the cache inode
creation. The io_list and io_ctl block group fields were only used by
the writers, so remove them too.

btrfs_truncate_free_space_cache() only needed the block group to wait
for and clear in-flight cache IO, so drop that parameter.

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/btrfs_inode.h
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/inode.c
fs/btrfs/relocation.c