Home
last modified time | relevance | path

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

/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_qm_dqzone, dqp); in xfs_qm_dqdestroy()
265 xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) in xfs_dquot_set_prealloc_limits() argument
269 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()
271 if (!dqp->q_prealloc_lo_wmark) { in xfs_dquot_set_prealloc_limits()
[all …]
Dxfs_dquot.h101 static inline void xfs_dqflock(struct xfs_dquot *dqp) in xfs_dqflock() argument
103 wait_for_completion(&dqp->q_flush); in xfs_dqflock()
106 static inline bool xfs_dqflock_nowait(struct xfs_dquot *dqp) in xfs_dqflock_nowait() argument
108 return try_wait_for_completion(&dqp->q_flush); in xfs_dqflock_nowait()
111 static inline void xfs_dqfunlock(struct xfs_dquot *dqp) in xfs_dqfunlock() argument
113 complete(&dqp->q_flush); in xfs_dqfunlock()
116 static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) in xfs_dqlock_nowait() argument
118 return mutex_trylock(&dqp->q_qlock); in xfs_dqlock_nowait()
121 static inline void xfs_dqlock(struct xfs_dquot *dqp) in xfs_dqlock() argument
123 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_qm.c37 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp);
51 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() argument
80 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() local
82 next_index = dqp->q_id + 1; in xfs_qm_dquot_walk()
119 struct xfs_dquot *dqp, in xfs_qm_dqpurge() argument
122 struct xfs_mount *mp = dqp->q_mount; in xfs_qm_dqpurge()
126 xfs_dqlock(dqp); in xfs_qm_dqpurge()
127 if ((dqp->q_flags & XFS_DQFLAG_FREEING) || dqp->q_nrefs != 0) in xfs_qm_dqpurge()
130 dqp->q_flags |= XFS_DQFLAG_FREEING; in xfs_qm_dqpurge()
132 xfs_dqflock(dqp); in xfs_qm_dqpurge()
[all …]
Dxfs_qm_syscalls.c508 struct xfs_dquot *dqp; in xfs_qm_scall_setqlim() local
535 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim()
541 defq = xfs_get_defquota(q, xfs_dquot_type(dqp)); in xfs_qm_scall_setqlim()
542 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
548 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
549 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
571 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
574 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
575 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
579 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
[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_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_trace.h863 TP_PROTO(struct xfs_dquot *dqp),
864 TP_ARGS(dqp),
887 __entry->dev = dqp->q_mount->m_super->s_dev;
888 __entry->id = dqp->q_id;
889 __entry->type = dqp->q_type;
890 __entry->flags = dqp->q_flags;
891 __entry->nrefs = dqp->q_nrefs;
893 __entry->res_bcount = dqp->q_blk.reserved;
894 __entry->res_rtbcount = dqp->q_rtb.reserved;
895 __entry->res_icount = dqp->q_ino.reserved;
[all …]
Dxfs_dquot_item.h27 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
/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()