aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_map.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2023-05-24 17:03:09 +0200
committerGravatar David Sterba <dsterba@suse.com> 2023-06-19 13:59:33 +0200
commita6f3e205e4916e4f29ce2c4c38d520616e6b0080 (patch)
treeb9c72b854cd10ad100eeab6f4ed2829a15bf384b /fs/btrfs/extent_map.h
parentbtrfs: record orig_physical only for the original bio (diff)
downloadlinux-a6f3e205e4916e4f29ce2c4c38d520616e6b0080.tar.gz
linux-a6f3e205e4916e4f29ce2c4c38d520616e6b0080.tar.bz2
linux-a6f3e205e4916e4f29ce2c4c38d520616e6b0080.zip
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>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r--fs/btrfs/extent_map.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h
index ad311864272a..7df39112388d 100644
--- a/fs/btrfs/extent_map.h
+++ b/fs/btrfs/extent_map.h
@@ -90,10 +90,7 @@ struct extent_map *lookup_extent_mapping(struct extent_map_tree *tree,
int add_extent_mapping(struct extent_map_tree *tree,
struct extent_map *em, int modified);
void remove_extent_mapping(struct extent_map_tree *tree, struct extent_map *em);
-void replace_extent_mapping(struct extent_map_tree *tree,
- struct extent_map *cur,
- struct extent_map *new,
- int modified);
+int split_extent_map(struct btrfs_inode *inode, u64 start, u64 len, u64 pre);
struct extent_map *alloc_extent_map(void);
void free_extent_map(struct extent_map *em);