]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: pass the extent map tree's inode to replace_extent_mapping()
authorFilipe Manana <fdmanana@suse.com>
Thu, 21 Mar 2024 16:07:26 +0000 (16:07 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:06 +0000 (21:31 +0200)
commit6a3a9113ae1dbed188f0481815dcc94846a7b2e7
tree1f15e82b0fc3f7e0f6f533fba0b88fbe7a0f1dad
parentc2fbd812d749757c5abc6f995a7741da0653a4f4
btrfs: pass the extent map tree's inode to replace_extent_mapping()

Extent maps are always associated to an inode's extent map tree, so
there's no need to pass the extent map tree explicitly to
replace_extent_mapping().

In order to facilitate an upcoming change that adds a shrinker for extent
maps, change replace_extent_mapping() to receive the inode instead of its
extent map tree.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c