]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: pass the extent map tree's inode to remove_extent_mapping()
authorFilipe Manana <fdmanana@suse.com>
Thu, 21 Mar 2024 15:08:38 +0000 (15:08 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:06 +0000 (21:31 +0200)
commitc2fbd812d749757c5abc6f995a7741da0653a4f4
tree35c61b2a84a9bb46147441a63247787787a6dabe
parent002f3a2ce8b07d03aa46ed977ca86cdb30f3d668
btrfs: pass the extent map tree's inode to remove_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
remove_extent_mapping().

In order to facilitate an upcoming change that adds a shrinker for extent
maps, change remove_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_io.c
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/tests/extent-map-tests.c