/* This is called to pin the buffer associated with the buf log item in memory so it cannot be written out. Simply call bpin() on the buffer to do this.  */
STATIC void xfs_buf_item_pin(xfs_buf_log_item_t *bip)
/* This is called to pin the buffer associated with the buf log item in memory so it cannot be written out. Simply call bpin() on the buffer to do this.  */
STATIC void xfs_buf_item_pin(xfs_buf_log_item_t *bip)
{
	xfs_buf_t	*bp;
	bp = bip->bli_buf;
	ASSERT(XFS_BUF_ISBUSY(bp));
	ASSERT(atomic_read(&bip->bli_refcount) > 0);
	ASSERT((bip->bli_flags & XFS_BLI_LOGGED) ||
	       (bip->bli_flags & XFS_BLI_STALE));
	trace_xfs_buf_item_pin(bip);
	xfs_bpin(bp);
}