xfs: add function pointers for get/update keys to the btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:03:38 +0000 (11:03 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:03:38 +0000 (11:03 +1000)
commit70b2265935544c2ba64619172fd757bd0ca91800
tree630e69695904ef6a9d5476f8f74291b4ec64ed0c
parente5821e57af54abc36ea299bde6c101a804cfac27
xfs: add function pointers for get/update keys to the btree

Add some function pointers to bc_ops to get the btree keys for
leaf and node blocks, and to update parent keys of a block.
Convert the _btree_updkey calls to use our new pointer, and
modify the tree shape changing code to call the appropriate
get_*_keys pointer instead of _btree_copy_keys because the
overlapping btree has to calculate high key values.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_ialloc_btree.c