diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-06-23 04:11:15 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 14:16:34 -0400 |
commit | 9412e3181c0ef82efc3d8e88d73e583ec10c34e9 (patch) | |
tree | 10ed24cdebd9922e7cd9414941e5c59e9e5fafab /fs/xfs/xfs_trans.c | |
parent | e98c414f9a3134fe7efc56ef8f1d394b54bfd40e (diff) |
xfs: merge iop_unpin_remove into iop_unpin
The unpin_remove item operation instances always share most of the
implementation with the respective unpin implementation. So instead
of keeping two different entry points add a remove flag to the unpin
operation and share the code more easily.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 9c41efccf728..213792e1ad02 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -1375,7 +1375,7 @@ xfs_trans_item_committed( | |||
1375 | * log item flags, if anyone else stales the buffer we do not want to | 1375 | * log item flags, if anyone else stales the buffer we do not want to |
1376 | * pay any attention to it. | 1376 | * pay any attention to it. |
1377 | */ | 1377 | */ |
1378 | IOP_UNPIN(lip); | 1378 | IOP_UNPIN(lip, 0); |
1379 | } | 1379 | } |
1380 | 1380 | ||
1381 | /* | 1381 | /* |
@@ -1422,7 +1422,7 @@ xfs_trans_uncommit( | |||
1422 | * Unpin all but those that aren't dirty. | 1422 | * Unpin all but those that aren't dirty. |
1423 | */ | 1423 | */ |
1424 | if (lidp->lid_flags & XFS_LID_DIRTY) | 1424 | if (lidp->lid_flags & XFS_LID_DIRTY) |
1425 | IOP_UNPIN_REMOVE(lidp->lid_item, tp); | 1425 | IOP_UNPIN(lidp->lid_item, 1); |
1426 | } | 1426 | } |
1427 | 1427 | ||
1428 | xfs_trans_unreserve_and_mod_sb(tp); | 1428 | xfs_trans_unreserve_and_mod_sb(tp); |