/* Log the bests entries indicated from a leaf1 block.  */
static void xfs_dir2_leaf_log_bests(xfs_trans_t *tp, xfs_dabuf_t *bp, int first, int last)
/* Log the bests entries indicated from a leaf1 block.  */
static void xfs_dir2_leaf_log_bests(xfs_trans_t *tp, xfs_dabuf_t *bp, int first, int last)
{
	__be16			*firstb;
	__be16			*lastb;
	xfs_dir2_leaf_t		*leaf;
	xfs_dir2_leaf_tail_t	*ltp;
	leaf = bp->data;
	ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC);
	ltp = xfs_dir2_leaf_tail_p(tp->t_mountp, leaf);
	firstb = xfs_dir2_leaf_bests_p(ltp) + first;
	lastb = xfs_dir2_leaf_bests_p(ltp) + last;
	xfs_da_log_buf(tp, bp, (uint)((char *)firstb - (char *)leaf),
		(uint)((char *)lastb - (char *)leaf + sizeof(*lastb) - 1));
}