Home
last modified time | relevance | path

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

/linux/fs/xfs/ !
H A Dxfs_dquot.c51 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()
78 struct xfs_dquot *dqp) in xfs_dquot_detach_buf() argument
80 struct xfs_dq_logitem *qlip = &dqp->q_logitem; in xfs_dquot_detach_buf()
101 struct xfs_dquot *dqp) in xfs_qm_dqdestroy() argument
103 ASSERT(list_empty(&dqp->q_lru)); in xfs_qm_dqdestroy()
104 ASSERT(dqp->q_logitem.qli_item.li_buf == NULL); in xfs_qm_dqdestroy()
106 kvfree(dqp->q_logitem.qli_item.li_lv_shadow); in xfs_qm_dqdestroy()
107 mutex_destroy(&dqp->q_qlock); in xfs_qm_dqdestroy()
[all …]
H A 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 …]
H A Dxfs_dquot.h109 static inline void xfs_dqflock(struct xfs_dquot *dqp) in xfs_dqflock() argument
111 wait_for_completion(&dqp->q_flush); in xfs_dqflock()
114 static inline bool xfs_dqflock_nowait(struct xfs_dquot *dqp) in xfs_dqflock_nowait() argument
116 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait()
119 static inline void xfs_dqfunlock(struct xfs_dquot *dqp) in xfs_dqfunlock() argument
121 complete(&dqp->q_flush); in xfs_dqfunlock()
125 xfs_dquot_type(const struct xfs_dquot *dqp) in xfs_dquot_type() argument
127 return dqp->q_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_type()
166 const struct xfs_dquot *dqp) in xfs_dquot_is_enforced() argument
168 switch (xfs_dquot_type(dqp)) { in xfs_dquot_is_enforced()
[all …]
H A Dxfs_trans_dquot.c32 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 …]
H A Dxfs_qm_syscalls.c279 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()
311 mutex_lock(&dqp->q_qlock); in xfs_qm_scall_setqlim()
312 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
334 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
337 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
338 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
342 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
349 dqp->q_rtb.hardlimit; in xfs_qm_scall_setqlim()
[all …]
H A Dxfs_qm.c43 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
57 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument
86 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local
88 next_index = dqp->q_id + 1; in xfs_qm_dquot_walk()
125 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument
128 struct xfs_quotainfo *qi = dqp->q_mount->m_quotainfo; in xfs_qm_dqpurge()
130 spin_lock(&dqp->q_lockref.lock); in xfs_qm_dqpurge()
131 if (dqp->q_lockref.count > 0 || __lockref_is_dead(&dqp->q_lockref)) { in xfs_qm_dqpurge()
132 spin_unlock(&dqp->q_lockref.lock); in xfs_qm_dqpurge()
135 lockref_mark_dead(&dqp->q_lockref); in xfs_qm_dqpurge()
[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
75 if (!xfs_qm_dqget(mp, ip->i_projid, XFS_DQTYPE_PROJ, false, &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.h1329 TP_PROTO(struct xfs_dquot *dqp),
1330 TP_ARGS(dqp),
1353 __entry->dev = dqp->q_mount->m_super->s_dev;
1354 __entry->id = dqp->q_id;
1355 __entry->type = dqp->q_type;
1356 __entry->flags = dqp->q_flags;
1357 __entry->nrefs = data_race(dqp->q_lockref.count);
1359 __entry->res_bcount = dqp->q_blk.reserved;
1360 __entry->res_rtbcount = dqp->q_rtb.reserved;
1361 __entry->res_icount = dqp->q_ino.reserved;
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/ !
H A Dmcg.c157 struct mlx4_promisc_qp *dqp = NULL; in new_steering_entry() local
178 dqp = kmalloc_obj(*dqp); 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/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/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()