Home
last modified time | relevance | path

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

/openbmc/linux/fs/xfs/
H A 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 …]
H A 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 …]
H A Dxfs_dquot_item.c76 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
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()
46 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot()
47 dqp->q_ino.softlimit : in xfs_fill_statvfs_from_dquot()
48 dqp->q_ino.hardlimit; in xfs_fill_statvfs_from_dquot()
52 if (limit > dqp->q_ino.reserved) in xfs_fill_statvfs_from_dquot()
53 remaining = limit - dqp->q_ino.reserved; in xfs_fill_statvfs_from_dquot()
74 struct xfs_dquot *dqp; in xfs_qm_statvfs() local
76 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_dquot_item.h19 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
H A Dxfs_trace.h1006 TP_PROTO(struct xfs_dquot *dqp),
1007 TP_ARGS(dqp),
1030 __entry->dev = dqp->q_mount->m_super->s_dev;
1031 __entry->id = dqp->q_id;
1032 __entry->type = dqp->q_type;
1033 __entry->flags = dqp->q_flags;
1034 __entry->nrefs = dqp->q_nrefs;
1036 __entry->res_bcount = dqp->q_blk.reserved;
1037 __entry->res_rtbcount = dqp->q_rtb.reserved;
1038 __entry->res_icount = dqp->q_ino.reserved;
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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 …]
/openbmc/linux/fs/xfs/libxfs/
H 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()
/openbmc/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()