diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-04-23 01:58:41 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 17:20:33 -0400 |
commit | 04913fdd91f342e537005ef1233f98068b925a7f (patch) | |
tree | b8eaacda9302290fb1833d47bf6c7be5813a80cb /fs/xfs/xfs_trans_priv.h | |
parent | a8569171ba26344a4c0308fc0da8f41795408ebc (diff) |
xfs: pass shutdown method into xfs_trans_ail_delete_bulk
xfs_trans_ail_delete_bulk() can be called from different contexts so
if the item is not in the AIL we need different shutdown for each
context. Pass in the shutdown method needed so the correct action
can be taken.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans_priv.h')
-rw-r--r-- | fs/xfs/xfs_trans_priv.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/xfs_trans_priv.h b/fs/xfs/xfs_trans_priv.h index f72bdd48a5c1..fb62377d1cbc 100644 --- a/fs/xfs/xfs_trans_priv.h +++ b/fs/xfs/xfs_trans_priv.h | |||
@@ -92,14 +92,16 @@ xfs_trans_ail_update( | |||
92 | } | 92 | } |
93 | 93 | ||
94 | void xfs_trans_ail_delete_bulk(struct xfs_ail *ailp, | 94 | void xfs_trans_ail_delete_bulk(struct xfs_ail *ailp, |
95 | struct xfs_log_item **log_items, int nr_items) | 95 | struct xfs_log_item **log_items, int nr_items, |
96 | int shutdown_type) | ||
96 | __releases(ailp->xa_lock); | 97 | __releases(ailp->xa_lock); |
97 | static inline void | 98 | static inline void |
98 | xfs_trans_ail_delete( | 99 | xfs_trans_ail_delete( |
99 | struct xfs_ail *ailp, | 100 | struct xfs_ail *ailp, |
100 | xfs_log_item_t *lip) __releases(ailp->xa_lock) | 101 | xfs_log_item_t *lip, |
102 | int shutdown_type) __releases(ailp->xa_lock) | ||
101 | { | 103 | { |
102 | xfs_trans_ail_delete_bulk(ailp, &lip, 1); | 104 | xfs_trans_ail_delete_bulk(ailp, &lip, 1, shutdown_type); |
103 | } | 105 | } |
104 | 106 | ||
105 | void xfs_ail_push(struct xfs_ail *, xfs_lsn_t); | 107 | void xfs_ail_push(struct xfs_ail *, xfs_lsn_t); |