aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_dquot_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/quota/xfs_dquot_item.c')
-rw-r--r--fs/xfs/quota/xfs_dquot_item.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/quota/xfs_dquot_item.c b/fs/xfs/quota/xfs_dquot_item.c
index 0e1fa517db09..1728f6a7c4f5 100644
--- a/fs/xfs/quota/xfs_dquot_item.c
+++ b/fs/xfs/quota/xfs_dquot_item.c
@@ -553,14 +553,16 @@ xfs_qm_qoffend_logitem_committed(
553 xfs_lsn_t lsn) 553 xfs_lsn_t lsn)
554{ 554{
555 xfs_qoff_logitem_t *qfs; 555 xfs_qoff_logitem_t *qfs;
556 struct xfs_ail *ailp;
556 557
557 qfs = qfe->qql_start_lip; 558 qfs = qfe->qql_start_lip;
558 spin_lock(&qfs->qql_item.li_mountp->m_ail->xa_lock); 559 ailp = qfs->qql_item.li_ailp;
560 spin_lock(&ailp->xa_lock);
559 /* 561 /*
560 * Delete the qoff-start logitem from the AIL. 562 * Delete the qoff-start logitem from the AIL.
561 * xfs_trans_delete_ail() drops the AIL lock. 563 * xfs_trans_ail_delete() drops the AIL lock.
562 */ 564 */
563 xfs_trans_delete_ail(qfs->qql_item.li_mountp, (xfs_log_item_t *)qfs); 565 xfs_trans_ail_delete(ailp, (xfs_log_item_t *)qfs);
564 kmem_free(qfs); 566 kmem_free(qfs);
565 kmem_free(qfe); 567 kmem_free(qfe);
566 return (xfs_lsn_t)-1; 568 return (xfs_lsn_t)-1;