aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_priv.h
diff options
context:
space:
mode:
authorDavid Chinner <david@fromorbit.com>2008-10-30 02:39:58 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 02:39:58 -0400
commit783a2f656f9674c31d4019708a94af93fa1d1c22 (patch)
tree7ac2123b187c0522dbd8a0d94de3856b33147c46 /fs/xfs/xfs_trans_priv.h
parentfc1829f34d30899701dfd5890030d39e13e1f47d (diff)
[XFS] Finish removing the mount pointer from the AIL API
Change all the remaining AIL API functions that are passed struct xfs_mount pointers to pass pointers directly to the struct xfs_ail being used. With this conversion, all external access to the AIL is via the struct xfs_ail. Hence the operation and referencing of the AIL is almost entirely independent of the xfs_mount that is using it - it is now much more tightly tied to the log and the items it is tracking in the log than it is tied to the xfs_mount. SGI-PV: 988143 SGI-Modid: xfs-linux-melb:xfs-kern:32353a Signed-off-by: David Chinner <david@fromorbit.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/xfs_trans_priv.h')
-rw-r--r--fs/xfs/xfs_trans_priv.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/xfs/xfs_trans_priv.h b/fs/xfs/xfs_trans_priv.h
index 6ca0a7a7e3df..73e2ad397432 100644
--- a/fs/xfs/xfs_trans_priv.h
+++ b/fs/xfs/xfs_trans_priv.h
@@ -85,12 +85,15 @@ struct xfs_ail {
85/* 85/*
86 * From xfs_trans_ail.c 86 * From xfs_trans_ail.c
87 */ 87 */
88void xfs_trans_update_ail(struct xfs_mount *mp, 88void xfs_trans_ail_update(struct xfs_ail *ailp,
89 struct xfs_log_item *lip, xfs_lsn_t lsn) 89 struct xfs_log_item *lip, xfs_lsn_t lsn)
90 __releases(mp->m_ail_lock); 90 __releases(ailp->xa_lock);
91void xfs_trans_delete_ail(struct xfs_mount *mp, 91void xfs_trans_ail_delete(struct xfs_ail *ailp,
92 struct xfs_log_item *lip) 92 struct xfs_log_item *lip)
93 __releases(mp->m_ail_lock); 93 __releases(ailp->xa_lock);
94void xfs_trans_ail_push(struct xfs_ail *, xfs_lsn_t);
95void xfs_trans_unlocked_item(struct xfs_ail *,
96 xfs_log_item_t *);
94 97
95xfs_lsn_t xfs_trans_ail_tail(struct xfs_ail *ailp); 98xfs_lsn_t xfs_trans_ail_tail(struct xfs_ail *ailp);
96 99