Skip to content
  • Nikolay Borisov's avatar
    btrfs: rename btrfs_leaf_data to BTRFS_LEAF_DATA_OFFSET · 3d9ec8c4
    Nikolay Borisov authored
    Commit 5f39d397
    
     ("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: default avatarNikolay Borisov <nborisov@suse.com>
    [ removed () from the macro ]
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    3d9ec8c4