Home
last modified time | relevance | path

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

/linux-6.15/fs/xfs/
H A Dxfs_dquot.c573 return dqp; in xfs_dquot_alloc()
655 dqp->q_blk.reserved = dqp->q_blk.count; in xfs_dquot_from_disk()
656 dqp->q_ino.reserved = dqp->q_ino.count; in xfs_dquot_from_disk()
657 dqp->q_rtb.reserved = dqp->q_rtb.count; in xfs_dquot_from_disk()
813 if (!dqp) { in xfs_qm_dqget_cache_lookup()
927 if (dqp) { in xfs_qm_dqget()
1023 if (dqp) { in xfs_qm_dqget_inode()
1145 if (!dqp) in xfs_qm_dqrele()
1247 if (dqp->q_blk.softlimit && dqp->q_blk.count > dqp->q_blk.softlimit && in xfs_qm_dqflush_check()
1251 if (dqp->q_ino.softlimit && dqp->q_ino.count > dqp->q_ino.softlimit && in xfs_qm_dqflush_check()
[all …]
H A Dxfs_dquot.h121 complete(&dqp->q_flush); in xfs_dqfunlock()
131 mutex_lock(&dqp->q_qlock); in xfs_dqlock()
136 mutex_unlock(&dqp->q_qlock); in xfs_dqunlock()
203 freesp = dqp->q_blk.hardlimit - dqp->q_blk.reserved; in xfs_dquot_lowsp()
207 freesp = dqp->q_rtb.hardlimit - dqp->q_rtb.reserved; in xfs_dquot_lowsp()
216 #define XFS_DQ_IS_LOCKED(dqp) (mutex_is_locked(&((dqp)->q_qlock))) argument
217 #define XFS_DQ_IS_DIRTY(dqp) ((dqp)->q_flags & XFS_DQFLAG_DIRTY) argument
249 xfs_dqlock(dqp); in xfs_qm_dqhold()
250 dqp->q_nrefs++; in xfs_qm_dqhold()
251 xfs_dqunlock(dqp); in xfs_qm_dqhold()
[all …]
H A Dxfs_dquot_item.c79 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
97 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin()
106 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument
116 wait_event(dqp->q_pinwait, (atomic_read(&dqp->q_pincount) == 0)); in xfs_qm_dqunpin_wait()
161 xfs_dqfunlock(dqp); in xfs_qm_dquot_logitem_push()
180 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_push()
198 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_release()
212 struct xfs_dquot *dqp) in xfs_qm_dquot_logitem_precommit_check() argument
225 fa, dqp->q_id); in xfs_qm_dquot_logitem_precommit_check()
265 struct xfs_dquot *dqp) in xfs_qm_dquot_logitem_init() argument
[all …]
H A Dxfs_trans_dquot.c32 struct xfs_dquot *dqp) in xfs_trans_dqjoin() argument
35 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
56 struct xfs_dquot *dqp) in xfs_trans_log_dquot() argument
61 if (dqp->q_id != 0 && in xfs_trans_log_dquot()
606 ASSERT(dqp->q_blk.reserved >= dqp->q_blk.count); in xfs_trans_apply_dquot_deltas()
607 ASSERT(dqp->q_ino.reserved >= dqp->q_ino.count); in xfs_trans_apply_dquot_deltas()
608 ASSERT(dqp->q_rtb.reserved >= dqp->q_rtb.count); in xfs_trans_apply_dquot_deltas()
823 xfs_dqlock(dqp); in xfs_trans_dqresv()
885 if (XFS_IS_CORRUPT(mp, dqp->q_blk.reserved < dqp->q_blk.count) || in xfs_trans_dqresv()
886 XFS_IS_CORRUPT(mp, dqp->q_rtb.reserved < dqp->q_rtb.count) || in xfs_trans_dqresv()
[all …]
H A Dxfs_qm_syscalls.c279 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
306 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
312 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
339 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
354 res = &dqp->q_rtb; in xfs_qm_scall_setqlim()
368 res = &dqp->q_ino; in xfs_qm_scall_setqlim()
391 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
440 struct xfs_dquot *dqp; in xfs_qm_scall_getquota() local
470 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()
497 *id = dqp->q_id; in xfs_qm_scall_getquota_next()
[all …]
H A Dxfs_qm.c131 xfs_dqlock(dqp); in xfs_qm_dqpurge()
132 if ((dqp->q_flags & XFS_DQFLAG_FREEING) || dqp->q_nrefs != 0) in xfs_qm_dqpurge()
137 xfs_dqflock(dqp); in xfs_qm_dqpurge()
169 xfs_dqflock(dqp); in xfs_qm_dqpurge()
179 xfs_dqunlock(dqp); in xfs_qm_dqpurge()
196 xfs_dqunlock(dqp); in xfs_qm_dqpurge()
308 dqp = *IO_idqpp; in xfs_qm_dqattach_one()
309 if (dqp) { in xfs_qm_dqattach_one()
330 *IO_idqpp = dqp; in xfs_qm_dqattach_one()
331 xfs_dqunlock(dqp); in xfs_qm_dqattach_one()
[all …]
H A Dxfs_qm_bhv.c23 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() argument
25 struct xfs_dquot_res *blkres = &dqp->q_blk; in xfs_fill_statvfs_from_dquot()
30 blkres = &dqp->q_rtb; in xfs_fill_statvfs_from_dquot()
45 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot()
46 dqp->q_ino.softlimit : in xfs_fill_statvfs_from_dquot()
47 dqp->q_ino.hardlimit; in xfs_fill_statvfs_from_dquot()
51 if (limit > dqp->q_ino.reserved) in xfs_fill_statvfs_from_dquot()
52 remaining = limit - dqp->q_ino.reserved; in xfs_fill_statvfs_from_dquot()
73 struct xfs_dquot *dqp; in xfs_qm_statvfs() local
76 xfs_fill_statvfs_from_dquot(statp, ip, dqp); in xfs_qm_statvfs()
[all …]
H A Dxfs_qm.h22 #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 …]
H A Dxfs_quota.h133 struct xfs_dquot *dqp, unsigned int field, int64_t delta);
150 # define xfs_trans_mod_ino_dquot(tp, ip, dqp, field, delta) \ argument
151 xfs_trans_mod_dquot((tp), (dqp), (field), (delta))
H A Dxfs_dquot_item.h26 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
H A Dxfs_trace.h1228 TP_PROTO(struct xfs_dquot *dqp),
1229 TP_ARGS(dqp),
1253 __entry->id = dqp->q_id;
1254 __entry->type = dqp->q_type;
1255 __entry->flags = dqp->q_flags;
1256 __entry->nrefs = dqp->q_nrefs;
1300 TP_ARGS(dqp))
1328 TP_ARGS(tp, dqp, field, delta),
1339 __entry->type = dqp->q_type;
1340 __entry->flags = dqp->q_flags;
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c178 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()
229 if (dqp) { in new_steering_entry()
231 kfree(dqp); in new_steering_entry()
277 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in existing_steering_entry()
278 if (!dqp) in existing_steering_entry()
280 dqp->qpn = qpn; in existing_steering_entry()
320 kfree(dqp); in check_duplicate_entry()
482 dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); in add_promisc_qp()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_dquot_buf.c319 struct xfs_dquot *dqp, in xfs_dquot_to_disk_ts() argument
324 if (timer != 0 && (dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_to_disk_ts()
/linux-6.15/arch/powerpc/sysdev/
H A 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()