Home
last modified time | relevance | path

Searched refs:dqp (Results 1 – 11 of 11) sorted by relevance

/linux-4.4.14/fs/xfs/
Dxfs_dquot.c73 xfs_dquot_t *dqp) in xfs_qm_dqdestroy() argument
75 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
77 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy()
79 XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); in xfs_qm_dqdestroy()
80 kmem_zone_free(xfs_qm_dqzone, dqp); in xfs_qm_dqdestroy()
273 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument
277 dqp->q_prealloc_hi_wmark = be64_to_cpu(dqp->q_core.d_blk_hardlimit); in xfs_dquot_set_prealloc_limits()
278 dqp->q_prealloc_lo_wmark = be64_to_cpu(dqp->q_core.d_blk_softlimit); in xfs_dquot_set_prealloc_limits()
279 if (!dqp->q_prealloc_lo_wmark) { in xfs_dquot_set_prealloc_limits()
280 dqp->q_prealloc_lo_wmark = dqp->q_prealloc_hi_wmark; in xfs_dquot_set_prealloc_limits()
[all …]
Dxfs_dquot.h84 static inline void xfs_dqflock(xfs_dquot_t *dqp) in xfs_dqflock() argument
86 wait_for_completion(&dqp->q_flush); in xfs_dqflock()
89 static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) in xfs_dqflock_nowait() argument
91 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait()
94 static inline void xfs_dqfunlock(xfs_dquot_t *dqp) in xfs_dqfunlock() argument
96 complete(&dqp->q_flush); in xfs_dqfunlock()
99 static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) in xfs_dqlock_nowait() argument
101 return mutex_trylock(&dqp->q_qlock); in xfs_dqlock_nowait()
104 static inline void xfs_dqlock(struct xfs_dquot *dqp) in xfs_dqlock() argument
106 mutex_lock(&dqp->q_qlock); in xfs_dqlock()
[all …]
Dxfs_trans_dquot.c42 xfs_dquot_t *dqp) in xfs_trans_dqjoin() argument
44 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin()
45 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin()
46 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
51 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin()
57 dqp->q_transp = tp; in xfs_trans_dqjoin()
74 xfs_dquot_t *dqp) in xfs_trans_log_dquot() argument
76 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot()
77 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot()
80 dqp->q_logitem.qli_item.li_desc->lid_flags |= XFS_LID_DIRTY; in xfs_trans_log_dquot()
[all …]
Dxfs_dquot_item.c85 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_pin() local
87 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin()
88 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
102 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_unpin() local
104 ASSERT(atomic_read(&dqp->q_pincount) > 0); in xfs_qm_dquot_logitem_unpin()
105 if (atomic_dec_and_test(&dqp->q_pincount)) in xfs_qm_dquot_logitem_unpin()
106 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin()
127 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument
129 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait()
130 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait()
[all …]
Dxfs_qm_bhv.c34 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() argument
38 limit = dqp->q_core.d_blk_softlimit ? in xfs_fill_statvfs_from_dquot()
39 be64_to_cpu(dqp->q_core.d_blk_softlimit) : in xfs_fill_statvfs_from_dquot()
40 be64_to_cpu(dqp->q_core.d_blk_hardlimit); in xfs_fill_statvfs_from_dquot()
44 (statp->f_blocks > dqp->q_res_bcount) ? in xfs_fill_statvfs_from_dquot()
45 (statp->f_blocks - dqp->q_res_bcount) : 0; in xfs_fill_statvfs_from_dquot()
48 limit = dqp->q_core.d_ino_softlimit ? in xfs_fill_statvfs_from_dquot()
49 be64_to_cpu(dqp->q_core.d_ino_softlimit) : in xfs_fill_statvfs_from_dquot()
50 be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_fill_statvfs_from_dquot()
54 (statp->f_files > dqp->q_res_icount) ? in xfs_fill_statvfs_from_dquot()
[all …]
Dxfs_qm.h34 #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ argument
35 !dqp->q_core.d_blk_hardlimit && \
36 !dqp->q_core.d_blk_softlimit && \
37 !dqp->q_core.d_rtb_hardlimit && \
38 !dqp->q_core.d_rtb_softlimit && \
39 !dqp->q_core.d_ino_hardlimit && \
40 !dqp->q_core.d_ino_softlimit && \
41 !dqp->q_core.d_bcount && \
42 !dqp->q_core.d_rtbcount && \
43 !dqp->q_core.d_icount)
[all …]
Dxfs_qm.c51 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
65 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument
94 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local
96 next_index = be32_to_cpu(dqp->q_core.d_id) + 1; in xfs_qm_dquot_walk()
130 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument
133 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge()
136 xfs_dqlock(dqp); in xfs_qm_dqpurge()
137 if ((dqp->dq_flags & XFS_DQ_FREEING) || dqp->q_nrefs != 0) { in xfs_qm_dqpurge()
138 xfs_dqunlock(dqp); in xfs_qm_dqpurge()
142 dqp->dq_flags |= XFS_DQ_FREEING; in xfs_qm_dqpurge()
[all …]
Dxfs_qm_syscalls.c405 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
429 error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp); in xfs_qm_scall_setqlim()
434 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
443 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
444 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
445 ddq = &dqp->q_core; in xfs_qm_scall_setqlim()
459 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
547 dqp->dq_flags |= XFS_DQ_DIRTY; in xfs_qm_scall_setqlim()
548 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
553 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
[all …]
Dxfs_trace.h867 TP_PROTO(struct xfs_dquot *dqp),
868 TP_ARGS(dqp),
883 __entry->dev = dqp->q_mount->m_super->s_dev;
884 __entry->id = be32_to_cpu(dqp->q_core.d_id);
885 __entry->flags = dqp->dq_flags;
886 __entry->nrefs = dqp->q_nrefs;
887 __entry->res_bcount = dqp->q_res_bcount;
888 __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount);
889 __entry->icount = be64_to_cpu(dqp->q_core.d_icount);
891 be64_to_cpu(dqp->q_core.d_blk_hardlimit);
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c158 struct mlx4_promisc_qp *dqp = NULL; in new_steering_entry() local
179 dqp = kmalloc(sizeof *dqp, GFP_KERNEL); in new_steering_entry()
180 if (!dqp) { in new_steering_entry()
184 dqp->qpn = qpn; in new_steering_entry()
185 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
230 if (dqp) { in new_steering_entry()
231 list_del(&dqp->list); in new_steering_entry()
232 kfree(dqp); in new_steering_entry()
247 struct mlx4_promisc_qp *dqp; in existing_steering_entry() local
272 list_for_each_entry(dqp, &entry->duplicates, list) { in existing_steering_entry()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dfsl_rmu.c228 u32 dqp = in_be32(&rmu->msg_regs->odqdpar); in fsl_rio_tx_handler() local
229 int slot = (dqp - rmu->msg_tx_ring.phys) >> 5; in fsl_rio_tx_handler()