diff options
author | Filipe Manana <fdmanana@suse.com> | 2020-09-08 11:27:22 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:13:16 +0200 |
commit | bf385648fa4805acf206254c77916edb58dbfe25 (patch) | |
tree | 053c5565ba367be14d549f273284439753030322 /fs/btrfs/ctree.h | |
parent | fb870f6cdd72a1f143d9d25ab864e474fed65616 (diff) | |
download | lwn-bf385648fa4805acf206254c77916edb58dbfe25.tar.gz lwn-bf385648fa4805acf206254c77916edb58dbfe25.zip |
btrfs: rename struct btrfs_clone_extent_info to a more generic name
Now that we can use btrfs_clone_extent_info to convey information for a
new prealloc extent as well, and not just for existing extents that are
being cloned, rename it to btrfs_replace_extent_info, which reflects the
fact that this is now more generic and it is used to replace all existing
extents in a file range with the extent described by the structure.
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/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 6200e430dfad..0e4034d63111 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1194,7 +1194,11 @@ struct btrfs_root { #endif }; -struct btrfs_clone_extent_info { +/* + * Structure that conveys information about an extent that is going to replace + * all the extents in a file range. + */ +struct btrfs_replace_extent_info { u64 disk_offset; u64 disk_len; u64 data_offset; @@ -3086,7 +3090,7 @@ int btrfs_drop_extents(struct btrfs_trans_handle *trans, u64 end, int drop_cache); int btrfs_punch_hole_range(struct inode *inode, struct btrfs_path *path, const u64 start, const u64 end, - struct btrfs_clone_extent_info *clone_info, + struct btrfs_replace_extent_info *extent_info, struct btrfs_trans_handle **trans_out); int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, struct btrfs_inode *inode, u64 start, u64 end); |