]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add function pointers for get/update keys to the btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Aug 2016 01:29:36 +0000 (11:29 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 01:29:36 +0000 (11:29 +1000)
commita3c9cb104760fab8bb52114aa601d6e42b6b4174
tree46cfd9af686cfbf1eccd4684e38a064ece600433
parentd3cd7a2729b66a0c3792466ee9cecc5c6139f46e
xfs: add function pointers for get/update keys to the btree

Source kernel commit: 70b2265935544c2ba64619172fd757bd0ca91800

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>
libxfs/xfs_alloc_btree.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c
libxfs/xfs_btree.h
libxfs/xfs_ialloc_btree.c