patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / xfs / xfs_trans_item.c
index 5606279..767af48 100644 (file)
@@ -397,7 +397,8 @@ xfs_trans_unlock_items(xfs_trans_t *tp, xfs_lsn_t commit_lsn)
  * Stamp the commit lsn into each item if necessary.
  * Free descriptors pointing to items which are not dirty if freeing_chunk
  * is zero. If freeing_chunk is non-zero, then we need to unlock all
- * items in the chunk including those with XFS_LID_SYNC_UNLOCK set.
+ * items in the chunk.
+ * 
  * Return the number of descriptors freed.
  */
 STATIC int
@@ -423,18 +424,9 @@ xfs_trans_unlock_chunk(
 
                if (commit_lsn != NULLCOMMITLSN)
                        IOP_COMMITTING(lip, commit_lsn);
-
-               /* XXXsup */
                if (abort)
                        lip->li_flags |= XFS_LI_ABORTED;
-
-               /* if (abort) {
-                       IOP_ABORT(lip);
-               } else */
-               if (!(lidp->lid_flags & XFS_LID_SYNC_UNLOCK) ||
-                          freeing_chunk || abort) {
-                       IOP_UNLOCK(lip);
-               }
+               IOP_UNLOCK(lip);
 
                /*
                 * Free the descriptor if the item is not dirty