xfs
[Top] [All Lists]

[PATCH] xfs: XFS_TRANS_SWAPEXT is not a valid flag for xfs_trans_commit

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfs: XFS_TRANS_SWAPEXT is not a valid flag for xfs_trans_commit
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 26 Sep 2011 05:14:34 -0400
User-agent: Mutt/1.5.21 (2010-09-15)
XFS_TRANS_SWAPEXT is a transaction type, not a flag for xfs_trans_commit, so
don't pass it in xfs_swap_extents.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs/fs/xfs/xfs_dfrag.c
===================================================================
--- xfs.orig/fs/xfs/xfs_dfrag.c 2011-07-26 17:53:45.336403605 +0200
+++ xfs/fs/xfs/xfs_dfrag.c      2011-07-27 18:48:03.390684228 +0200
@@ -438,7 +438,7 @@ xfs_swap_extents(
        if (mp->m_flags & XFS_MOUNT_WSYNC)
                xfs_trans_set_sync(tp);
 
-       error = xfs_trans_commit(tp, XFS_TRANS_SWAPEXT);
+       error = xfs_trans_commit(tp, 0);
 
        trace_xfs_swap_extent_after(ip, 0);
        trace_xfs_swap_extent_after(tip, 1);

<Prev in Thread] Current Thread [Next in Thread>