aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_dquot.c
diff options
context:
space:
mode:
authorDavid Chinner <david@fromorbit.com>2008-10-30 02:39:23 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 02:39:23 -0400
commitc7e8f268278a292d3823b4352182fa7755a71410 (patch)
treef7316f830fdc7feedfd9ae486ac097e8f5df8dad /fs/xfs/quota/xfs_dquot.c
parent7b2e2a31f5c23b5f028af8c895137b4c512cc1c8 (diff)
[XFS] Move the AIL lock into the struct xfs_ail
Bring the ail lock inside the struct xfs_ail. This means the AIL can be entirely manipulated via the struct xfs_ail rather than needing both the struct xfs_mount and the struct xfs_ail. SGI-PV: 988143 SGI-Modid: xfs-linux-melb:xfs-kern:32350a 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/quota/xfs_dquot.c')
-rw-r--r--fs/xfs/quota/xfs_dquot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c
index 59c1081412ec..0d7a62bffeed 100644
--- a/fs/xfs/quota/xfs_dquot.c
+++ b/fs/xfs/quota/xfs_dquot.c
@@ -1333,7 +1333,7 @@ xfs_qm_dqflush_done(
1333 if ((qip->qli_item.li_flags & XFS_LI_IN_AIL) && 1333 if ((qip->qli_item.li_flags & XFS_LI_IN_AIL) &&
1334 qip->qli_item.li_lsn == qip->qli_flush_lsn) { 1334 qip->qli_item.li_lsn == qip->qli_flush_lsn) {
1335 1335
1336 spin_lock(&dqp->q_mount->m_ail_lock); 1336 spin_lock(&dqp->q_mount->m_ail->xa_lock);
1337 /* 1337 /*
1338 * xfs_trans_delete_ail() drops the AIL lock. 1338 * xfs_trans_delete_ail() drops the AIL lock.
1339 */ 1339 */
@@ -1341,7 +1341,7 @@ xfs_qm_dqflush_done(
1341 xfs_trans_delete_ail(dqp->q_mount, 1341 xfs_trans_delete_ail(dqp->q_mount,
1342 (xfs_log_item_t*)qip); 1342 (xfs_log_item_t*)qip);
1343 else 1343 else
1344 spin_unlock(&dqp->q_mount->m_ail_lock); 1344 spin_unlock(&dqp->q_mount->m_ail->xa_lock);
1345 } 1345 }
1346 1346
1347 /* 1347 /*