/* Log an active data entry from the block.  */
void xfs_dir2_data_log_entry(xfs_trans_t *tp, xfs_dabuf_t *bp, xfs_dir2_data_entry_t *dep)
/* Log an active data entry from the block.  */
void xfs_dir2_data_log_entry(xfs_trans_t *tp, xfs_dabuf_t *bp, xfs_dir2_data_entry_t *dep)
{
	xfs_dir2_data_t		*d;
	d = bp->data;
	ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC ||
	       be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC);
	xfs_da_log_buf(tp, bp, (uint)((char *)dep - (char *)d),
		(uint)((char *)(xfs_dir2_data_entry_tag_p(dep) + 1) -
		       (char *)d - 1));
}