summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2022-09-01 14:18:27 +0100
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:28:01 +0200
commit8eedaddaab6a6b8ccfd8d942a173500b73894643 (patch)
tree279584e3dea71194e836082bb9d1c79e914cc971 /fs/btrfs/backref.h
parent09fbc1c8e7b00e260b18049af71bf8ca8c4cba99 (diff)
downloadlinux-stable-8eedaddaab6a6b8ccfd8d942a173500b73894643.tar.gz
linux-stable-8eedaddaab6a6b8ccfd8d942a173500b73894643.tar.bz2
linux-stable-8eedaddaab6a6b8ccfd8d942a173500b73894643.zip
btrfs: rename btrfs_check_shared() to a more descriptive name
The function btrfs_check_shared() is supposed to be used to check if a data extent is shared, but its name is too generic, may easily cause confusion in the sense that it may be used for metadata extents. So rename it to btrfs_is_data_extent_shared(), which will also make it less confusing after the next change that adds a backref lookup cache for the b+tree nodes that lead to the leaf that contains the file extent item that points to the target data extent. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Qu Wenruo <wqu@suse.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/backref.h')
-rw-r--r--fs/btrfs/backref.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/backref.h b/fs/btrfs/backref.h
index 2759de7d324c..08354394b1bb 100644
--- a/fs/btrfs/backref.h
+++ b/fs/btrfs/backref.h
@@ -62,8 +62,8 @@ int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
u64 start_off, struct btrfs_path *path,
struct btrfs_inode_extref **ret_extref,
u64 *found_off);
-int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr,
- struct ulist *roots, struct ulist *tmp_ulist);
+int btrfs_is_data_extent_shared(struct btrfs_root *root, u64 inum, u64 bytenr,
+ struct ulist *roots, struct ulist *tmp);
int __init btrfs_prelim_ref_init(void);
void __cold btrfs_prelim_ref_exit(void);