/* * This is called to pin the inode associated with the inode log * item in memory so it cannot be written out. Do this by calling * xfs_ipin() to bump the pin count in the inode while holding the * inode pin lock. */ STATIC void xfs_inode_item_pin( xfs_inode_log_item_t *iip) { ASSERT(xfs_isilocked(iip->ili_inode, XFS_ILOCK_EXCL)); xfs_ipin(iip->ili_inode); }
/* * This is called to pin the inode associated with the inode log * item in memory so it cannot be written out. Do this by calling * xfs_ipin() to bump the pin count in the inode while holding the * inode pin lock. */ STATIC void xfs_inode_item_pin( xfs_inode_log_item_t *iip) { ASSERT(ismrlocked(&(iip->ili_inode->i_lock), MR_UPDATE)); xfs_ipin(iip->ili_inode); }