patch-2.4.27 linux-2.4.27/fs/xfs/xfs_trans_buf.c
Next file: linux-2.4.27/fs/xfs/xfs_trans_item.c
Previous file: linux-2.4.27/fs/xfs/xfs_trans_ail.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
2004-08-07 16:26:06.147408125 -0700
- Orig file:
linux-2.4.26/fs/xfs/xfs_trans_buf.c
- Orig date:
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.26/fs/xfs/xfs_trans_buf.c linux-2.4.27/fs/xfs/xfs_trans_buf.c
@@ -714,40 +714,6 @@
}
/*
- * This function is used to indicate that the buffer should not be
- * unlocked until the transaction is committed to disk. Since we
- * are going to keep the lock held, make the transaction synchronous
- * so that the lock is not held too long.
- *
- * It uses the log item descriptor flag XFS_LID_SYNC_UNLOCK to
- * delay the buf items's unlock call until the transaction is
- * committed to disk or aborted.
- */
-void
-xfs_trans_bhold_until_committed(xfs_trans_t *tp,
- xfs_buf_t *bp)
-{
- xfs_log_item_desc_t *lidp;
- xfs_buf_log_item_t *bip;
-
- ASSERT(XFS_BUF_ISBUSY(bp));
- ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp);
- ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL);
-
- bip = XFS_BUF_FSPRIVATE(bp, xfs_buf_log_item_t *);
- ASSERT(!(bip->bli_flags & XFS_BLI_STALE));
- ASSERT(!(bip->bli_format.blf_flags & XFS_BLI_CANCEL));
- ASSERT(atomic_read(&bip->bli_refcount) > 0);
- lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)bip);
- ASSERT(lidp != NULL);
-
- lidp->lid_flags |= XFS_LID_SYNC_UNLOCK;
- xfs_buf_item_trace("BHOLD UNTIL COMMIT", bip);
-
- xfs_trans_set_sync(tp);
-}
-
-/*
* This is called to mark bytes first through last inclusive of the given
* buffer as needing to be logged when the transaction is committed.
* The buffer must already be associated with the given transaction.
@@ -799,7 +765,6 @@
if (bip->bli_flags & XFS_BLI_STALE) {
xfs_buf_item_trace("BLOG UNSTALE", bip);
bip->bli_flags &= ~XFS_BLI_STALE;
- /* note this will have to change for page_buf interface... unstale isn't really an option RMC */
ASSERT(XFS_BUF_ISSTALE(bp));
XFS_BUF_UNSTALE(bp);
bip->bli_format.blf_flags &= ~XFS_BLI_CANCEL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)