Lines Matching refs:dqp
75 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_pin() local
77 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin()
78 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
92 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_unpin() local
94 ASSERT(atomic_read(&dqp->q_pincount) > 0); in xfs_qm_dquot_logitem_unpin()
95 if (atomic_dec_and_test(&dqp->q_pincount)) in xfs_qm_dquot_logitem_unpin()
96 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin()
105 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument
107 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait()
108 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait()
114 xfs_log_force(dqp->q_mount, 0); in xfs_qm_dqunpin_wait()
115 wait_event(dqp->q_pinwait, (atomic_read(&dqp->q_pincount) == 0)); in xfs_qm_dqunpin_wait()
125 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_push() local
130 if (atomic_read(&dqp->q_pincount) > 0) in xfs_qm_dquot_logitem_push()
133 if (!xfs_dqlock_nowait(dqp)) in xfs_qm_dquot_logitem_push()
140 if (atomic_read(&dqp->q_pincount) > 0) { in xfs_qm_dquot_logitem_push()
150 if (!xfs_dqflock_nowait(dqp)) { in xfs_qm_dquot_logitem_push()
157 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dquot_logitem_push()
167 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_push()
175 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_release() local
177 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_release()
185 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_release()
213 struct xfs_dquot *dqp) in xfs_qm_dquot_logitem_init() argument
215 struct xfs_dq_logitem *lp = &dqp->q_logitem; in xfs_qm_dquot_logitem_init()
217 xfs_log_item_init(dqp->q_mount, &lp->qli_item, XFS_LI_DQUOT, in xfs_qm_dquot_logitem_init()
219 lp->qli_dquot = dqp; in xfs_qm_dquot_logitem_init()