/* Log the header of the leaf1 or leafn block.  */
void xfs_dir2_leaf_log_header(xfs_trans_t *tp, xfs_dabuf_t *bp)
/* Log the header of the leaf1 or leafn block.  */
void xfs_dir2_leaf_log_header(xfs_trans_t *tp, xfs_dabuf_t *bp)
{
	xfs_dir2_leaf_t		*leaf;
	leaf = bp->data;
	ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC ||
	       be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC);
	xfs_da_log_buf(tp, bp, (uint)((char *)&leaf->hdr - (char *)leaf),
		(uint)(sizeof(leaf->hdr) - 1));
}