]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rename btrfs_leaf_data to BTRFS_LEAF_DATA_OFFSET
authorNikolay Borisov <nborisov@suse.com>
Mon, 29 May 2017 06:43:43 +0000 (09:43 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:00 +0000 (18:26 +0200)
commitb4894e216e4cb2a1b23cd51015ec2e359996aaa1
tree9dad4d2f427816f68261cf9802c526317383dfa9
parent3ce720aea8b64ed36af662173717c5701edd7cf7
btrfs: rename btrfs_leaf_data to BTRFS_LEAF_DATA_OFFSET

Commit 5f39d397dfbe ("Btrfs: Create extent_buffer interface
for large blocksizes") refactored btrfs_leaf_data function to take
extent_buffer rather than struct btrfs_leaf. However, as it turns out the
parameter being passed is never used. Furthermore this function no longer
returns the leaf data but rather the offset to it. So rename the function
to BTRFS_LEAF_DATA_OFFSET to make it consistent with other BTRFS_LEAF_*
helpers and turn it into a macro.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
[ removed () from the macro ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/extent_io.c