btrfs: simplify extent map splitting and rename split_zoned_em
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Mar 2023 05:19:54 +0000 (14:19 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:21 +0000 (18:01 +0200)
commit2e38a84bc6aba53b82dceb1b4fd049be6924c288
tree30584297da90b9c9ecd647776772938c8074d252
parentf0792b792dbe862847b1d590beed372a01b99af0
btrfs: simplify extent map splitting and rename split_zoned_em

split_zoned_em is only ever asked to split out the beginning of an extent
map.  Change it to only take a len to split out instead of a pre and post
region.

Also rename the function to split_extent_map as there is nothing zoned
device specific about it.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Tested-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c