/linux-6.12.1/fs/xfs/ |
D | xfs_dquot.c | 51 struct xfs_dquot *dqp) in xfs_dquot_mark_sick() argument 53 struct xfs_mount *mp = dqp->q_mount; in xfs_dquot_mark_sick() 55 switch (dqp->q_type) { in xfs_dquot_mark_sick() 76 struct xfs_dquot *dqp) in xfs_qm_dqdestroy() argument 78 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy() 80 kvfree(dqp->q_logitem.qli_item.li_lv_shadow); in xfs_qm_dqdestroy() 81 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy() 83 XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); in xfs_qm_dqdestroy() 84 kmem_cache_free(xfs_dquot_cache, dqp); in xfs_qm_dqdestroy() 286 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument [all …]
|
D | xfs_dquot.h | 103 static inline void xfs_dqflock(struct xfs_dquot *dqp) in xfs_dqflock() argument 105 wait_for_completion(&dqp->q_flush); in xfs_dqflock() 108 static inline bool xfs_dqflock_nowait(struct xfs_dquot *dqp) in xfs_dqflock_nowait() argument 110 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait() 113 static inline void xfs_dqfunlock(struct xfs_dquot *dqp) in xfs_dqfunlock() argument 115 complete(&dqp->q_flush); in xfs_dqfunlock() 118 static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) in xfs_dqlock_nowait() argument 120 return mutex_trylock(&dqp->q_qlock); in xfs_dqlock_nowait() 123 static inline void xfs_dqlock(struct xfs_dquot *dqp) in xfs_dqlock() argument 125 mutex_lock(&dqp->q_qlock); in xfs_dqlock() [all …]
|
D | xfs_trans_dquot.c | 32 struct xfs_dquot *dqp) in xfs_trans_dqjoin() argument 34 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_dqjoin() 35 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin() 40 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin() 56 struct xfs_dquot *dqp) in xfs_trans_log_dquot() argument 58 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot() 61 if (dqp->q_id != 0 && in xfs_trans_log_dquot() 63 !(dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_trans_log_dquot() 64 dqp->q_type |= XFS_DQTYPE_BIGTIME; in xfs_trans_log_dquot() 67 set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags); in xfs_trans_log_dquot() [all …]
|
D | xfs_dquot_item.c | 76 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_pin() local 78 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin() 79 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin() 93 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_unpin() local 95 ASSERT(atomic_read(&dqp->q_pincount) > 0); in xfs_qm_dquot_logitem_unpin() 96 if (atomic_dec_and_test(&dqp->q_pincount)) in xfs_qm_dquot_logitem_unpin() 97 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin() 106 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument 108 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait() 109 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait() [all …]
|
D | xfs_qm_syscalls.c | 279 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local 299 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim() 305 defq = xfs_get_defquota(q, xfs_dquot_type(dqp)); in xfs_qm_scall_setqlim() 306 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim() 312 xfs_dqlock(dqp); in xfs_qm_scall_setqlim() 313 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim() 335 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim() 338 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim() 339 res = &dqp->q_blk; in xfs_qm_scall_setqlim() 343 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim() [all …]
|
D | xfs_qm.c | 41 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); 55 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument 84 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local 86 next_index = dqp->q_id + 1; in xfs_qm_dquot_walk() 123 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument 126 struct xfs_quotainfo *qi = dqp->q_mount->m_quotainfo; in xfs_qm_dqpurge() 129 xfs_dqlock(dqp); in xfs_qm_dqpurge() 130 if ((dqp->q_flags & XFS_DQFLAG_FREEING) || dqp->q_nrefs != 0) in xfs_qm_dqpurge() 133 dqp->q_flags |= XFS_DQFLAG_FREEING; in xfs_qm_dqpurge() 135 xfs_dqflock(dqp); in xfs_qm_dqpurge() [all …]
|
D | xfs_qm_bhv.c | 22 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() argument 26 limit = dqp->q_blk.softlimit ? in xfs_fill_statvfs_from_dquot() 27 dqp->q_blk.softlimit : in xfs_fill_statvfs_from_dquot() 28 dqp->q_blk.hardlimit; in xfs_fill_statvfs_from_dquot() 32 (statp->f_blocks > dqp->q_blk.reserved) ? in xfs_fill_statvfs_from_dquot() 33 (statp->f_blocks - dqp->q_blk.reserved) : 0; in xfs_fill_statvfs_from_dquot() 36 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot() 37 dqp->q_ino.softlimit : in xfs_fill_statvfs_from_dquot() 38 dqp->q_ino.hardlimit; in xfs_fill_statvfs_from_dquot() 42 (statp->f_files > dqp->q_ino.reserved) ? in xfs_fill_statvfs_from_dquot() [all …]
|
D | xfs_qm.h | 22 #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ argument 23 !dqp->q_blk.hardlimit && \ 24 !dqp->q_blk.softlimit && \ 25 !dqp->q_rtb.hardlimit && \ 26 !dqp->q_rtb.softlimit && \ 27 !dqp->q_ino.hardlimit && \ 28 !dqp->q_ino.softlimit && \ 29 !dqp->q_blk.count && \ 30 !dqp->q_rtb.count && \ 31 !dqp->q_ino.count) [all …]
|
D | xfs_quota.h | 130 struct xfs_dquot *dqp, unsigned int field, int64_t delta); 147 # define xfs_trans_mod_ino_dquot(tp, ip, dqp, field, delta) \ argument 148 xfs_trans_mod_dquot((tp), (dqp), (field), (delta))
|
D | xfs_dquot_item.h | 19 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
|
D | xfs_trace.h | 1025 TP_PROTO(struct xfs_dquot *dqp), 1026 TP_ARGS(dqp), 1049 __entry->dev = dqp->q_mount->m_super->s_dev; 1050 __entry->id = dqp->q_id; 1051 __entry->type = dqp->q_type; 1052 __entry->flags = dqp->q_flags; 1053 __entry->nrefs = dqp->q_nrefs; 1055 __entry->res_bcount = dqp->q_blk.reserved; 1056 __entry->res_rtbcount = dqp->q_rtb.reserved; 1057 __entry->res_icount = dqp->q_ino.reserved; [all …]
|
/linux-6.12.1/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-6.12.1/fs/xfs/libxfs/ |
D | xfs_dquot_buf.c | 316 struct xfs_dquot *dqp, in xfs_dquot_to_disk_ts() argument 321 if (timer != 0 && (dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_to_disk_ts()
|
/linux-6.12.1/arch/powerpc/sysdev/ |
D | fsl_rmu.c | 226 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()
|