* 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
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