]> git.hungrycats.org Git - linux/commit
btrfs: remove the v1 space cache load path
authorTal Zussman <tz2294@columbia.edu>
Thu, 15 Oct 2026 14:43:22 +0000 (10:43 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Oct 2026 17:06:56 +0000 (19:06 +0200)
commit7d6afdb6c1dca238dfa878350583d4e8be07eaae
tree754fe5d4d285c11ccbb2e0d5b86a54691058bc7e
parent5134fd8e09ce6ec2b6cbc15888f826d904bab34d
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: LLM
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