Home
last modified time | relevance | path

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

/Linux-v6.1/fs/xfs/
Dxfs_dquot.c52 struct xfs_dquot *dqp) in xfs_qm_dqdestroy() argument
54 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
56 kmem_free(dqp->q_logitem.qli_item.li_lv_shadow); in xfs_qm_dqdestroy()
57 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy()
59 XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); in xfs_qm_dqdestroy()
60 kmem_cache_free(xfs_dquot_cache, dqp); in xfs_qm_dqdestroy()
262 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument
266 dqp->q_prealloc_hi_wmark = dqp->q_blk.hardlimit; in xfs_dquot_set_prealloc_limits()
267 dqp->q_prealloc_lo_wmark = dqp->q_blk.softlimit; in xfs_dquot_set_prealloc_limits()
268 if (!dqp->q_prealloc_lo_wmark) { in xfs_dquot_set_prealloc_limits()
[all …]
Dxfs_dquot.h103 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 …]
Dxfs_trans_dquot.c31 struct xfs_dquot *dqp) in xfs_trans_dqjoin() argument
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()
55 struct xfs_dquot *dqp) in xfs_trans_log_dquot() argument
57 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_trans_log_dquot()
60 if (dqp->q_id != 0 && in xfs_trans_log_dquot()
62 !(dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_trans_log_dquot()
63 dqp->q_type |= XFS_DQTYPE_BIGTIME; in xfs_trans_log_dquot()
66 set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags); in xfs_trans_log_dquot()
[all …]
Dxfs_dquot_item.c75 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_pin() local
77 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dquot_logitem_pin()
78 atomic_inc(&dqp->q_pincount); in xfs_qm_dquot_logitem_pin()
92 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; in xfs_qm_dquot_logitem_unpin() local
94 ASSERT(atomic_read(&dqp->q_pincount) > 0); in xfs_qm_dquot_logitem_unpin()
95 if (atomic_dec_and_test(&dqp->q_pincount)) in xfs_qm_dquot_logitem_unpin()
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()
108 if (atomic_read(&dqp->q_pincount) == 0) in xfs_qm_dqunpin_wait()
[all …]
Dxfs_qm_syscalls.c280 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
300 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
306 defq = xfs_get_defquota(q, xfs_dquot_type(dqp)); in xfs_qm_scall_setqlim()
307 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
313 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
314 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
336 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
339 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
340 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
344 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
[all …]
Dxfs_qm.c40 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 = dqp->q_id + 1; in xfs_qm_dquot_walk()
122 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument
125 struct xfs_quotainfo *qi = dqp->q_mount->m_quotainfo; in xfs_qm_dqpurge()
128 xfs_dqlock(dqp); in xfs_qm_dqpurge()
129 if ((dqp->q_flags & XFS_DQFLAG_FREEING) || dqp->q_nrefs != 0) in xfs_qm_dqpurge()
132 dqp->q_flags |= XFS_DQFLAG_FREEING; in xfs_qm_dqpurge()
134 xfs_dqflock(dqp); in xfs_qm_dqpurge()
[all …]
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()
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 …]
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 …]
Dxfs_dquot_item.h19 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
Dxfs_trace.h1009 TP_PROTO(struct xfs_dquot *dqp),
1010 TP_ARGS(dqp),
1033 __entry->dev = dqp->q_mount->m_super->s_dev;
1034 __entry->id = dqp->q_id;
1035 __entry->type = dqp->q_type;
1036 __entry->flags = dqp->q_flags;
1037 __entry->nrefs = dqp->q_nrefs;
1039 __entry->res_bcount = dqp->q_blk.reserved;
1040 __entry->res_rtbcount = dqp->q_rtb.reserved;
1041 __entry->res_icount = dqp->q_ino.reserved;
[all …]
/Linux-v6.1/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-v6.1/fs/xfs/libxfs/
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-v6.1/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()