btrfs: move open coded extent map tree deletion out of inode eviction
authorFilipe Manana <fdmanana@suse.com>
Mon, 19 Sep 2022 14:06:32 +0000 (15:06 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 29 Sep 2022 15:08:30 +0000 (17:08 +0200)
commit9c9d1b4f74c5e96779e561af9b57c65607bf8a6d
tree948809af45807aa0c800287dab90af30bb16ca3d
parent99ba0c815058805a179d0edf8ddd421898798957
btrfs: move open coded extent map tree deletion out of inode eviction

Move the loop that removes all the extent maps from the inode's extent
map tree during inode eviction out of inode.c and into extent_map.c, to
btrfs_drop_extent_map_range(). Anything manipulating extent maps or the
extent map tree should be in extent_map.c.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_map.c
fs/btrfs/inode.c