/* The values for fieldmask are defined in xfs_inode_item.h. We always log all of the core inode if any of it has changed, and we always log all of the inline data/extents/b-tree root if any of them has changed.  */
void xfs_trans_log_inode(xfs_trans_t *tp, xfs_inode_t *ip, uint flags)
/* The values for fieldmask are defined in xfs_inode_item.h. We always log all of the core inode if any of it has changed, and we always log all of the inline data/extents/b-tree root if any of them has changed.  */
void xfs_trans_log_inode(xfs_trans_t *tp, xfs_inode_t *ip, uint flags)
{
	xfs_log_item_desc_t	*lidp;
	ASSERT(ip->i_transp == tp);
	ASSERT(ip->i_itemp != NULL);
	ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
	lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)(ip->i_itemp));
	ASSERT(lidp != NULL);
	tp->t_flags |= XFS_TRANS_DIRTY;
	lidp->lid_flags |= XFS_LID_DIRTY;
	flags |= ip->i_itemp->ili_last_fields;
	ip->i_itemp->ili_format.ilf_fields |= flags;
}