btrfs: move split_extent_map to extent_map.c
authorChristoph Hellwig <hch@lst.de>
Wed, 24 May 2023 15:03:09 +0000 (17:03 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:33 +0000 (13:59 +0200)
commita6f3e205e4916e4f29ce2c4c38d520616e6b0080
treeb9c72b854cd10ad100eeab6f4ed2829a15bf384b
parent3887653c44ec1de089b8624bd53af05b946939e9
btrfs: move split_extent_map to extent_map.c

split_extent_map doesn't have anything to do with the other code in
inode.c, so move it to extent_map.c.

This also allows marking replace_extent_mapping static.

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