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.h | |
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.h')
-rw-r--r-- | fs/xfs/xfs_trans.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h index 0c903eb8bbe1..37c0ce1ccd48 100644 --- a/fs/xfs/xfs_trans.h +++ b/fs/xfs/xfs_trans.h | |||
@@ -347,8 +347,7 @@ typedef struct xfs_item_ops { | |||
347 | uint (*iop_size)(xfs_log_item_t *); | 347 | uint (*iop_size)(xfs_log_item_t *); |
348 | void (*iop_format)(xfs_log_item_t *, struct xfs_log_iovec *); | 348 | void (*iop_format)(xfs_log_item_t *, struct xfs_log_iovec *); |
349 | void (*iop_pin)(xfs_log_item_t *); | 349 | void (*iop_pin)(xfs_log_item_t *); |
350 | void (*iop_unpin)(xfs_log_item_t *); | 350 | void (*iop_unpin)(xfs_log_item_t *, int remove); |
351 | void (*iop_unpin_remove)(xfs_log_item_t *, struct xfs_trans *); | ||
352 | uint (*iop_trylock)(xfs_log_item_t *); | 351 | uint (*iop_trylock)(xfs_log_item_t *); |
353 | void (*iop_unlock)(xfs_log_item_t *); | 352 | void (*iop_unlock)(xfs_log_item_t *); |
354 | xfs_lsn_t (*iop_committed)(xfs_log_item_t *, xfs_lsn_t); | 353 | xfs_lsn_t (*iop_committed)(xfs_log_item_t *, xfs_lsn_t); |
@@ -360,8 +359,7 @@ typedef struct xfs_item_ops { | |||
360 | #define IOP_SIZE(ip) (*(ip)->li_ops->iop_size)(ip) | 359 | #define IOP_SIZE(ip) (*(ip)->li_ops->iop_size)(ip) |
361 | #define IOP_FORMAT(ip,vp) (*(ip)->li_ops->iop_format)(ip, vp) | 360 | #define IOP_FORMAT(ip,vp) (*(ip)->li_ops->iop_format)(ip, vp) |
362 | #define IOP_PIN(ip) (*(ip)->li_ops->iop_pin)(ip) | 361 | #define IOP_PIN(ip) (*(ip)->li_ops->iop_pin)(ip) |
363 | #define IOP_UNPIN(ip) (*(ip)->li_ops->iop_unpin)(ip) | 362 | #define IOP_UNPIN(ip, remove) (*(ip)->li_ops->iop_unpin)(ip, remove) |
364 | #define IOP_UNPIN_REMOVE(ip,tp) (*(ip)->li_ops->iop_unpin_remove)(ip, tp) | ||
365 | #define IOP_TRYLOCK(ip) (*(ip)->li_ops->iop_trylock)(ip) | 363 | #define IOP_TRYLOCK(ip) (*(ip)->li_ops->iop_trylock)(ip) |
366 | #define IOP_UNLOCK(ip) (*(ip)->li_ops->iop_unlock)(ip) | 364 | #define IOP_UNLOCK(ip) (*(ip)->li_ops->iop_unlock)(ip) |
367 | #define IOP_COMMITTED(ip, lsn) (*(ip)->li_ops->iop_committed)(ip, lsn) | 365 | #define IOP_COMMITTED(ip, lsn) (*(ip)->li_ops->iop_committed)(ip, lsn) |