summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-03-21 15:08:38 +0000
committerDavid Sterba <dsterba@suse.com>2024-05-07 21:31:06 +0200
commitc2fbd812d749757c5abc6f995a7741da0653a4f4 (patch)
tree35c61b2a84a9bb46147441a63247787787a6dabe /fs/btrfs/extent_io.c
parent002f3a2ce8b07d03aa46ed977ca86cdb30f3d668 (diff)
downloadlinux-c2fbd812d749757c5abc6f995a7741da0653a4f4.tar.gz
linux-c2fbd812d749757c5abc6f995a7741da0653a4f4.tar.bz2
linux-c2fbd812d749757c5abc6f995a7741da0653a4f4.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 91122817f137..7b10f47d8f83 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2457,7 +2457,7 @@ remove_em:
* hurts the fsync performance for workloads with a data
* size that exceeds or is close to the system's memory).
*/
- remove_extent_mapping(map, em);
+ remove_extent_mapping(btrfs_inode, em);
/* once for the rb tree */
free_extent_map(em);
next: