btrfs: make btrfs_file_extent_inline_item_len take a slot
authorJosef Bacik <josef@toxicpanda.com>
Thu, 21 Oct 2021 18:58:33 +0000 (14:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:43 +0000 (15:09 +0100)
commit437bd07e6c52512f6faf9d3355f34deaa6537ff5
tree3c94d80414348e7b21a331ce810cdaebf2ed6eeb
parentc91666b1f61915f2b2f2358f922c9d7d44480d0a
btrfs: make btrfs_file_extent_inline_item_len take a slot

Instead of getting the btrfs_item for this, simply pass in the slot of
the item and then use the btrfs_item_size_nr() helper inside of
btrfs_file_extent_inline_item_len().

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.h
fs/btrfs/inode.c