]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename btrfs_item_end_nr to btrfs_item_data_end
authorJosef Bacik <josef@toxicpanda.com>
Thu, 21 Oct 2021 18:58:37 +0000 (14:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:43 +0000 (15:09 +0100)
commitc29e580519330e148e49fec62e13af35bdf143c4
tree8168943e7401320ad322ca4188483459038170a5
parentc500e891cd255d52e59cb5937c2325ff6c7278cf
btrfs: rename btrfs_item_end_nr to btrfs_item_data_end

The name btrfs_item_end_nr() is a bit of a misnomer, as it's actually
the offset of the end of the data the item points to.  In fact all of
the helpers that we use btrfs_item_end_nr() use data in their name, like
BTRFS_LEAF_DATA_SIZE() and leaf_data().  Rename to btrfs_item_data_end()
to make it clear what this helper is giving us.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/tree-checker.c