|
@@ -347,13 +347,15 @@ xfs_swap_extents(
|
|
|
|
|
|
error = xfs_trans_commit(tp, XFS_TRANS_SWAPEXT);
|
|
|
|
|
|
-out_unlock:
|
|
|
- xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
|
|
|
- xfs_iunlock(tip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
|
|
|
out:
|
|
|
kmem_free(tempifp);
|
|
|
return error;
|
|
|
|
|
|
+out_unlock:
|
|
|
+ xfs_iunlock(ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
|
|
|
+ xfs_iunlock(tip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
|
|
|
+ goto out;
|
|
|
+
|
|
|
out_trans_cancel:
|
|
|
xfs_trans_cancel(tp, 0);
|
|
|
goto out_unlock;
|