]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename btrfs_check_shared() to a more descriptive name
authorFilipe Manana <fdmanana@suse.com>
Thu, 1 Sep 2022 13:18:27 +0000 (14:18 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:01 +0000 (12:28 +0200)
commitd57a843422652ec2ad4b3d54ccb63c9816e4312b
tree279584e3dea71194e836082bb9d1c79e914cc971
parent1213ade2c6528c21ad673cd9c4457e7ac6003e8a
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>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/extent_io.c