Home
last modified time | relevance | path

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

/linux/fs/xfs/
A Dxfs_dquot.c269 dqp->q_prealloc_hi_wmark = dqp->q_blk.hardlimit; in xfs_dquot_set_prealloc_limits()
270 dqp->q_prealloc_lo_wmark = dqp->q_blk.softlimit; in xfs_dquot_set_prealloc_limits()
272 dqp->q_prealloc_lo_wmark = dqp->q_prealloc_hi_wmark; in xfs_dquot_set_prealloc_limits()
590 dqp->q_blk.reserved = dqp->q_blk.count; in xfs_dquot_from_disk()
591 dqp->q_ino.reserved = dqp->q_ino.count; in xfs_dquot_from_disk()
592 dqp->q_rtb.reserved = dqp->q_rtb.count; in xfs_dquot_from_disk()
892 if (dqp) { in xfs_qm_dqget()
1109 if (!dqp) in xfs_qm_dqrele()
1208 if (dqp->q_blk.softlimit && dqp->q_blk.count > dqp->q_blk.softlimit && in xfs_qm_dqflush_check()
1212 if (dqp->q_ino.softlimit && dqp->q_ino.count > dqp->q_ino.softlimit && in xfs_qm_dqflush_check()
[all …]
A Dxfs_dquot.h123 complete(&dqp->q_flush); in xfs_dqfunlock()
133 mutex_lock(&dqp->q_qlock); in xfs_dqlock()
138 mutex_unlock(&dqp->q_qlock); in xfs_dqunlock()
180 const struct xfs_dquot *dqp) in xfs_dquot_is_enforced() argument
202 freesp = dqp->q_blk.hardlimit - dqp->q_blk.reserved; in xfs_dquot_lowsp()
211 #define XFS_DQ_IS_LOCKED(dqp) (mutex_is_locked(&((dqp)->q_qlock))) argument
212 #define XFS_DQ_IS_DIRTY(dqp) ((dqp)->q_flags & XFS_DQFLAG_DIRTY) argument
239 xfs_dqlock(dqp); in xfs_qm_dqhold()
240 dqp->q_nrefs++; in xfs_qm_dqhold()
241 xfs_dqunlock(dqp); in xfs_qm_dqhold()
[all …]
A Dxfs_trans_dquot.c31 struct xfs_dquot *dqp) in xfs_trans_dqjoin() argument
34 ASSERT(dqp->q_logitem.qli_dquot == dqp); in xfs_trans_dqjoin()
60 if (dqp->q_id != 0 && in xfs_trans_log_dquot()
424 if (dqp->q_id) { in xfs_trans_apply_dquot_deltas()
461 ASSERT(dqp->q_blk.reserved >= dqp->q_blk.count); in xfs_trans_apply_dquot_deltas()
462 ASSERT(dqp->q_ino.reserved >= dqp->q_ino.count); in xfs_trans_apply_dquot_deltas()
463 ASSERT(dqp->q_rtb.reserved >= dqp->q_rtb.count); in xfs_trans_apply_dquot_deltas()
633 xfs_dqlock(dqp); in xfs_trans_dqresv()
695 if (XFS_IS_CORRUPT(mp, dqp->q_blk.reserved < dqp->q_blk.count) || in xfs_trans_dqresv()
696 XFS_IS_CORRUPT(mp, dqp->q_rtb.reserved < dqp->q_rtb.count) || in xfs_trans_dqresv()
[all …]
A Dxfs_dquot_item.c77 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin()
78 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
96 wake_up(&dqp->q_pinwait); in xfs_qm_dquot_logitem_unpin()
105 struct xfs_dquot *dqp) in xfs_qm_dqunpin_wait() argument
107 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait()
115 wait_event(dqp->q_pinwait, (atomic_read(&dqp->q_pincount) == 0)); in xfs_qm_dqunpin_wait()
133 if (!xfs_dqlock_nowait(dqp)) in xfs_qm_dquot_logitem_push()
167 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_push()
185 xfs_dqunlock(dqp); in xfs_qm_dquot_logitem_release()
213 struct xfs_dquot *dqp) in xfs_qm_dquot_logitem_init() argument
[all …]
A Dxfs_qm_syscalls.c292 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
326 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
332 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
359 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
376 res = &dqp->q_rtb; in xfs_qm_scall_setqlim()
392 res = &dqp->q_ino; in xfs_qm_scall_setqlim()
417 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
460 if (xfs_dquot_is_enforced(dqp) && dqp->q_id != 0) { in xfs_qm_scall_getquota_fill_qc()
508 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()
535 *id = dqp->q_id; in xfs_qm_scall_getquota_next()
[all …]
A Dxfs_qm.c128 xfs_dqlock(dqp); in xfs_qm_dqpurge()
129 if ((dqp->q_flags & XFS_DQFLAG_FREEING) || dqp->q_nrefs != 0) in xfs_qm_dqpurge()
134 xfs_dqflock(dqp); in xfs_qm_dqpurge()
156 xfs_dqflock(dqp); in xfs_qm_dqpurge()
265 dqp = *IO_idqpp; in xfs_qm_dqattach_one()
266 if (dqp) { in xfs_qm_dqattach_one()
287 *IO_idqpp = dqp; in xfs_qm_dqattach_one()
1896 if (!dqp || !xfs_dquot_is_enforced(dqp)) in xfs_inode_near_dquot_enforcement()
1907 if (dqp->q_blk.reserved < dqp->q_prealloc_lo_wmark) in xfs_inode_near_dquot_enforcement()
1910 if (dqp->q_blk.reserved >= dqp->q_prealloc_hi_wmark) in xfs_inode_near_dquot_enforcement()
[all …]
A Dxfs_qm_bhv.c22 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()
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()
61 struct xfs_dquot *dqp; in xfs_qm_statvfs() local
[all …]
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 …]
A Dxfs_dquot_item.h19 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
A Dxfs_trace.h1002 TP_PROTO(struct xfs_dquot *dqp),
1003 TP_ARGS(dqp),
1027 __entry->id = dqp->q_id;
1028 __entry->type = dqp->q_type;
1029 __entry->flags = dqp->q_flags;
1030 __entry->nrefs = dqp->q_nrefs;
1074 TP_ARGS(dqp))
1118 TP_ARGS(tp, dqp, field, delta),
1129 __entry->type = dqp->q_type;
1130 __entry->flags = dqp->q_flags;
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
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/fs/xfs/libxfs/
A Dxfs_dquot_buf.c316 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/arch/powerpc/sysdev/
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()

Completed in 32 milliseconds