Home
last modified time | relevance | path

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

/Linux-v5.4/fs/xfs/
Dxfs_dquot.c51 xfs_dquot_t *dqp) in xfs_qm_dqdestroy() argument
53 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
55 kmem_free(dqp->q_logitem.qli_item.li_lv_shadow); in xfs_qm_dqdestroy()
56 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy()
58 XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); in xfs_qm_dqdestroy()
59 kmem_zone_free(xfs_qm_dqzone, dqp); in xfs_qm_dqdestroy()
254 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument
258 dqp->q_prealloc_hi_wmark = be64_to_cpu(dqp->q_core.d_blk_hardlimit); in xfs_dquot_set_prealloc_limits()
259 dqp->q_prealloc_lo_wmark = be64_to_cpu(dqp->q_core.d_blk_softlimit); in xfs_dquot_set_prealloc_limits()
260 if (!dqp->q_prealloc_lo_wmark) { in xfs_dquot_set_prealloc_limits()
[all …]
Dxfs_dquot.h71 static inline void xfs_dqflock(xfs_dquot_t *dqp) in xfs_dqflock() argument
73 wait_for_completion(&dqp->q_flush); in xfs_dqflock()
76 static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) in xfs_dqflock_nowait() argument
78 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait()
81 static inline void xfs_dqfunlock(xfs_dquot_t *dqp) in xfs_dqfunlock() argument
83 complete(&dqp->q_flush); in xfs_dqfunlock()
86 static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) in xfs_dqlock_nowait() argument
88 return mutex_trylock(&dqp->q_qlock); in xfs_dqlock_nowait()
91 static inline void xfs_dqlock(struct xfs_dquot *dqp) in xfs_dqlock() argument
93 mutex_lock(&dqp->q_qlock); in xfs_dqlock()
[all …]
Dxfs_trans_dquot.c29 xfs_dquot_t *dqp) in xfs_trans_dqjoin() argument
31 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin()
32 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
37 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin()
53 xfs_dquot_t *dqp) in xfs_trans_log_dquot() argument
55 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot()
58 set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags); in xfs_trans_log_dquot()
153 struct xfs_dquot *dqp) in xfs_trans_get_dqtrx() argument
158 if (XFS_QM_ISUDQ(dqp)) in xfs_trans_get_dqtrx()
160 else if (XFS_QM_ISGDQ(dqp)) in xfs_trans_get_dqtrx()
[all …]
Dxfs_dquot_item.c73 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_pin() local
75 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin()
76 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
90 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_unpin() local
92 ASSERT(atomic_read(&dqp->q_pincount) > 0); in xfs_qm_dquot_logitem_unpin()
93 if (atomic_dec_and_test(&dqp->q_pincount)) in xfs_qm_dquot_logitem_unpin()
94 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin()
103 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument
105 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait()
106 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait()
[all …]
Dxfs_qm_bhv.c22 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() argument
26 limit = dqp->q_core.d_blk_softlimit ? in xfs_fill_statvfs_from_dquot()
27 be64_to_cpu(dqp->q_core.d_blk_softlimit) : in xfs_fill_statvfs_from_dquot()
28 be64_to_cpu(dqp->q_core.d_blk_hardlimit); in xfs_fill_statvfs_from_dquot()
32 (statp->f_blocks > dqp->q_res_bcount) ? in xfs_fill_statvfs_from_dquot()
33 (statp->f_blocks - dqp->q_res_bcount) : 0; in xfs_fill_statvfs_from_dquot()
36 limit = dqp->q_core.d_ino_softlimit ? in xfs_fill_statvfs_from_dquot()
37 be64_to_cpu(dqp->q_core.d_ino_softlimit) : in xfs_fill_statvfs_from_dquot()
38 be64_to_cpu(dqp->q_core.d_ino_hardlimit); in xfs_fill_statvfs_from_dquot()
42 (statp->f_files > dqp->q_res_icount) ? in xfs_fill_statvfs_from_dquot()
[all …]
Dxfs_qm.c36 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
50 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument
79 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local
81 next_index = be32_to_cpu(dqp->q_core.d_id) + 1; in xfs_qm_dquot_walk()
118 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument
121 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge()
124 xfs_dqlock(dqp); in xfs_qm_dqpurge()
125 if ((dqp->dq_flags & XFS_DQ_FREEING) || dqp->q_nrefs != 0) { in xfs_qm_dqpurge()
126 xfs_dqunlock(dqp); in xfs_qm_dqpurge()
130 dqp->dq_flags |= XFS_DQ_FREEING; in xfs_qm_dqpurge()
[all …]
Dxfs_qm.h22 #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ argument
23 !dqp->q_core.d_blk_hardlimit && \
24 !dqp->q_core.d_blk_softlimit && \
25 !dqp->q_core.d_rtb_hardlimit && \
26 !dqp->q_core.d_rtb_softlimit && \
27 !dqp->q_core.d_ino_hardlimit && \
28 !dqp->q_core.d_ino_softlimit && \
29 !dqp->q_core.d_bcount && \
30 !dqp->q_core.d_rtbcount && \
31 !dqp->q_core.d_icount)
[all …]
Dxfs_qm_syscalls.c387 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
412 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
418 defq = xfs_get_defquota(dqp, q); in xfs_qm_scall_setqlim()
419 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
425 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
426 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
427 ddq = &dqp->q_core; in xfs_qm_scall_setqlim()
441 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
529 dqp->dq_flags |= XFS_DQ_DIRTY; in xfs_qm_scall_setqlim()
530 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
[all …]
Dxfs_trace.h856 TP_PROTO(struct xfs_dquot *dqp),
857 TP_ARGS(dqp),
872 __entry->dev = dqp->q_mount->m_super->s_dev;
873 __entry->id = be32_to_cpu(dqp->q_core.d_id);
874 __entry->flags = dqp->dq_flags;
875 __entry->nrefs = dqp->q_nrefs;
876 __entry->res_bcount = dqp->q_res_bcount;
877 __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount);
878 __entry->icount = be64_to_cpu(dqp->q_core.d_icount);
880 be64_to_cpu(dqp->q_core.d_blk_hardlimit);
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c157 struct mlx4_promisc_qp *dqp = NULL; in new_steering_entry() local
178 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in new_steering_entry()
179 if (!dqp) { in new_steering_entry()
183 dqp->qpn = qpn; in new_steering_entry()
184 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
229 if (dqp) { in new_steering_entry()
230 list_del(&dqp->list); in new_steering_entry()
231 kfree(dqp); in new_steering_entry()
246 struct mlx4_promisc_qp *dqp; in existing_steering_entry() local
271 list_for_each_entry(dqp, &entry->duplicates, list) { in existing_steering_entry()
[all …]
/Linux-v5.4/arch/powerpc/sysdev/
Dfsl_rmu.c226 u32 dqp = in_be32(&rmu->msg_regs->odqdpar); in fsl_rio_tx_handler() local
227 int slot = (dqp - rmu->msg_tx_ring.phys) >> 5; in fsl_rio_tx_handler()