/Linux-v4.19/fs/xfs/ |
D | xfs_dquot.c | 55 xfs_dquot_t *dqp) in xfs_qm_dqdestroy() argument 57 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy() 59 kmem_free(dqp->q_logitem.qli_item.li_lv_shadow); in xfs_qm_dqdestroy() 60 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy() 62 XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); in xfs_qm_dqdestroy() 63 kmem_zone_free(xfs_qm_dqzone, dqp); in xfs_qm_dqdestroy() 258 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument 262 dqp->q_prealloc_hi_wmark = be64_to_cpu(dqp->q_core.d_blk_hardlimit); in xfs_dquot_set_prealloc_limits() 263 dqp->q_prealloc_lo_wmark = be64_to_cpu(dqp->q_core.d_blk_softlimit); in xfs_dquot_set_prealloc_limits() 264 if (!dqp->q_prealloc_lo_wmark) { in xfs_dquot_set_prealloc_limits() [all …]
|
D | xfs_trans_dquot.c | 30 xfs_dquot_t *dqp) in xfs_trans_dqjoin() argument 32 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin() 33 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin() 34 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin() 39 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin() 45 dqp->q_transp = tp; in xfs_trans_dqjoin() 62 xfs_dquot_t *dqp) in xfs_trans_log_dquot() argument 64 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot() 65 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot() 68 set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags); in xfs_trans_log_dquot() [all …]
|
D | xfs_dquot.h | 72 static inline void xfs_dqflock(xfs_dquot_t *dqp) in xfs_dqflock() argument 74 wait_for_completion(&dqp->q_flush); in xfs_dqflock() 77 static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) in xfs_dqflock_nowait() argument 79 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait() 82 static inline void xfs_dqfunlock(xfs_dquot_t *dqp) in xfs_dqfunlock() argument 84 complete(&dqp->q_flush); in xfs_dqfunlock() 87 static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) in xfs_dqlock_nowait() argument 89 return mutex_trylock(&dqp->q_qlock); in xfs_dqlock_nowait() 92 static inline void xfs_dqlock(struct xfs_dquot *dqp) in xfs_dqlock() argument 94 mutex_lock(&dqp->q_qlock); in xfs_dqlock() [all …]
|
D | xfs_dquot_item.c | 73 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() 115 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument 117 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait() 118 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait() [all …]
|
D | xfs_qm_bhv.c | 22 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 …]
|
D | xfs_qm.c | 40 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); 54 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument 83 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local 85 next_index = be32_to_cpu(dqp->q_core.d_id) + 1; in xfs_qm_dquot_walk() 122 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument 125 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge() 128 xfs_dqlock(dqp); in xfs_qm_dqpurge() 129 if ((dqp->dq_flags & XFS_DQ_FREEING) || dqp->q_nrefs != 0) { in xfs_qm_dqpurge() 130 xfs_dqunlock(dqp); in xfs_qm_dqpurge() 134 dqp->dq_flags |= XFS_DQ_FREEING; in xfs_qm_dqpurge() [all …]
|
D | xfs_qm.h | 22 #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 …]
|
D | xfs_qm_syscalls.c | 392 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local 417 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim() 423 defq = xfs_get_defquota(dqp, q); in xfs_qm_scall_setqlim() 424 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim() 430 xfs_dqlock(dqp); in xfs_qm_scall_setqlim() 431 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim() 432 ddq = &dqp->q_core; in xfs_qm_scall_setqlim() 446 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim() 534 dqp->dq_flags |= XFS_DQ_DIRTY; in xfs_qm_scall_setqlim() 535 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim() [all …]
|
D | xfs_trace.h | 838 TP_PROTO(struct xfs_dquot *dqp), 839 TP_ARGS(dqp), 854 __entry->dev = dqp->q_mount->m_super->s_dev; 855 __entry->id = be32_to_cpu(dqp->q_core.d_id); 856 __entry->flags = dqp->dq_flags; 857 __entry->nrefs = dqp->q_nrefs; 858 __entry->res_bcount = dqp->q_res_bcount; 859 __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount); 860 __entry->icount = be64_to_cpu(dqp->q_core.d_icount); 862 be64_to_cpu(dqp->q_core.d_blk_hardlimit); [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 157 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-v4.19/arch/powerpc/sysdev/ |
D | fsl_rmu.c | 230 u32 dqp = in_be32(&rmu->msg_regs->odqdpar); in fsl_rio_tx_handler() local 231 int slot = (dqp - rmu->msg_tx_ring.phys) >> 5; in fsl_rio_tx_handler()
|