]> git.hungrycats.org Git - linux/commit
btrfs: remove btrfs_disk_cache_state
authorTal Zussman <tz2294@columbia.edu>
Thu, 17 Sep 2026 04:00:04 +0000 (00:00 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 17 Sep 2026 17:49:48 +0000 (19:49 +0200)
commite24297027dd04324a6b37e88e8117b66fe9e83e9
tree01dc95efc5b0d9b27c291120059e49a5a3aa9bb4
parenta2908b4cfb851e79624ee4445717c689b2523695
btrfs: remove btrfs_disk_cache_state

With neither the writer nor the loader left, nothing acts on
disk_cache_state. Remove it, the need_clear handling when reading block
groups, and the enum. While at it, drop the unused cache_generation
field from struct btrfs_block_group.

lookup_free_space_inode() converted old style space inodes by clearing
disk_cache_state so the cache would be rewritten with the new inode
flags. Without that it only sets flags on the in-memory inode, which
every remaining caller truncates or deletes right after, so drop the
conversion 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/free-space-cache.c