Skip to content

Commit

Permalink
xfs: XFS_TRANS_SWAPEXT is not a valid flag for xfs_trans_commit
Browse files Browse the repository at this point in the history
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@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Oct 12, 2011
1 parent c029a50 commit 815cb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_dfrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 815cb21

Please sign in to comment.