summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/accessors.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-11-15 11:16:16 -0500
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:58 +0100
commite23efd8e8767165a6103cf0a4fe273f6b9f182f2 (patch)
treef1ed39ed08db71eca8a7203a7f9671da08b7a726 /fs/btrfs/accessors.c
parent42c9419a4c01910e9c46b0c2bb9090f76295bf01 (diff)
downloadlinux-stable-e23efd8e8767165a6103cf0a4fe273f6b9f182f2.tar.gz
linux-stable-e23efd8e8767165a6103cf0a4fe273f6b9f182f2.tar.bz2
linux-stable-e23efd8e8767165a6103cf0a4fe273f6b9f182f2.zip
btrfs: add eb to btrfs_node_key_ptr_offset
This is a change needed for extent tree v2, as we will be growing the header size. This exists in btrfs-progs currently, and not having it makes syncing accessors.[ch] more problematic. So make this change to set us up for extent tree v2 and match what btrfs-progs does to make syncing easier. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/accessors.c')
-rw-r--r--fs/btrfs/accessors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/accessors.c b/fs/btrfs/accessors.c
index 7a7b7d263102..206cf1612c1d 100644
--- a/fs/btrfs/accessors.c
+++ b/fs/btrfs/accessors.c
@@ -168,7 +168,7 @@ DEFINE_BTRFS_SETGET_BITS(64)
void btrfs_node_key(const struct extent_buffer *eb,
struct btrfs_disk_key *disk_key, int nr)
{
- unsigned long ptr = btrfs_node_key_ptr_offset(nr);
+ unsigned long ptr = btrfs_node_key_ptr_offset(eb, nr);
read_eb_member(eb, (struct btrfs_key_ptr *)ptr,
struct btrfs_key_ptr, key, disk_key);
}