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

Nothing writes a v1 space cache any more, and since commit 545e560a5b0f
("btrfs: disable v1 space cache") the mount option can't be enabled to
read one either. Remove load_free_space_cache(), its io_ctl helpers and
struct btrfs_io_ctl. Drop the gfp constraint on the inode mapping as
well, it only covered the cache's page cache allocations.

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