btrfs: move btrfs_map_token to accessors
This is specific to the item-accessor code, move it out of ctree.h into accessor.h/.c and then update the users to include the new header file. This un-inlines btrfs_init_map_token, however this is only called once per function so it's not critical to be inlined. This also saves 904 bytes of code on a release build. Reviewed-by:Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by:
Anand Jain <anand.jain@oracle.com> Signed-off-by:
Josef Bacik <josef@toxicpanda.com> Reviewed-by:
David Sterba <dsterba@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com>
Showing
- fs/btrfs/accessors.c 8 additions, 0 deletionsfs/btrfs/accessors.c
- fs/btrfs/accessors.h 14 additions, 0 deletionsfs/btrfs/accessors.h
- fs/btrfs/ctree.c 1 addition, 0 deletionsfs/btrfs/ctree.c
- fs/btrfs/ctree.h 2 additions, 14 deletionsfs/btrfs/ctree.h
- fs/btrfs/inode.c 1 addition, 0 deletionsfs/btrfs/inode.c
- fs/btrfs/tree-log.c 1 addition, 0 deletionsfs/btrfs/tree-log.c
Please register or sign in to comment