/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_dquot.c | 52 struct xfs_dquot *dqp) in xfs_qm_dqdestroy() 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 in xfs_dquot_set_prealloc_limits() 51 xfs_qm_dqdestroy( struct xfs_dquot *dqp) xfs_qm_dqdestroy() argument 291 xfs_dquot_disk_alloc( struct xfs_trans **tpp, struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_dquot_disk_alloc() argument 385 xfs_dquot_disk_read( struct xfs_mount *mp, struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_dquot_disk_read() argument 453 struct xfs_dquot *dqp; xfs_dquot_alloc() local 505 xfs_dquot_check_type( struct xfs_dquot *dqp, struct xfs_disk_dquot *ddqp) xfs_dquot_check_type() argument 541 xfs_dquot_from_disk( struct xfs_dquot *dqp, struct xfs_buf *bp) xfs_dquot_from_disk() argument 595 xfs_dquot_to_disk( struct xfs_disk_dquot *ddqp, struct xfs_dquot *dqp) xfs_dquot_to_disk() argument 628 xfs_qm_dqread_alloc( struct xfs_mount *mp, struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_qm_dqread_alloc() argument 676 struct xfs_dquot *dqp; xfs_qm_dqread() local 776 struct xfs_dquot *dqp; xfs_qm_dqget_cache_lookup() local 811 xfs_qm_dqget_cache_insert( struct xfs_mount *mp, struct xfs_quotainfo *qi, struct radix_tree_root *tree, xfs_dqid_t id, struct xfs_dquot *dqp) xfs_qm_dqget_cache_insert() argument 882 struct xfs_dquot *dqp; xfs_qm_dqget() local 971 struct xfs_dquot *dqp; xfs_qm_dqget_inode() local 1053 struct xfs_dquot *dqp; xfs_qm_dqget_next() local 1082 xfs_qm_dqput( struct xfs_dquot *dqp) xfs_qm_dqput() argument 1105 xfs_qm_dqrele( struct xfs_dquot *dqp) xfs_qm_dqrele() argument 1135 struct xfs_dquot *dqp = qip->qli_dquot; xfs_qm_dqflush_done() local 1194 xfs_qm_dqflush_check( struct xfs_dquot *dqp) xfs_qm_dqflush_check() argument 1239 xfs_qm_dqflush( struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_qm_dqflush() argument [all...] |
H A D | xfs_dquot.h | 101 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 in xfs_dqlock() 126 xfs_dqunlock(struct xfs_dquot *dqp) xfs_dqunlock() argument 132 xfs_dquot_type(const struct xfs_dquot *dqp) xfs_dquot_type() argument 169 xfs_dquot_is_enforced( const struct xfs_dquot *dqp) xfs_dquot_is_enforced() argument 188 xfs_dquot_lowsp(struct xfs_dquot *dqp) xfs_dquot_lowsp() argument 227 xfs_qm_dqhold(struct xfs_dquot *dqp) xfs_qm_dqhold() argument [all...] |
H A D | xfs_trans_dquot.c | 31 struct xfs_dquot *dqp) in xfs_trans_dqjoin() 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() 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 in xfs_trans_log_dquot() 29 xfs_trans_dqjoin( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_dqjoin() argument 53 xfs_trans_log_dquot( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_log_dquot() argument 159 xfs_trans_get_dqtrx( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_get_dqtrx() argument 196 xfs_trans_mod_dquot( struct xfs_trans *tp, struct xfs_dquot *dqp, uint field, int64_t delta) xfs_trans_mod_dquot() argument 350 struct xfs_dquot *dqp; xfs_trans_apply_dquot_deltas() local 493 struct xfs_dquot *dqp; xfs_trans_unreserve_and_mod_dquots() local 548 xfs_quota_warn( struct xfs_mount *mp, struct xfs_dquot *dqp, int type) xfs_quota_warn() argument 632 xfs_trans_dqresv( struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *dqp, int64_t nblks, long ninos, uint flags) xfs_trans_dqresv() argument [all...] |
H A D | xfs_dquot_item.c | 75 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() 107 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait() 108 if (atomic_read(&dqp in xfs_qm_dqunpin_wait() 104 xfs_qm_dqunpin_wait( struct xfs_dquot *dqp) xfs_qm_dqunpin_wait() argument 125 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; global() variable 167 xfs_dqunlock(dqp); global() variable 175 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; xfs_qm_dquot_logitem_release() local 212 xfs_qm_dquot_logitem_init( struct xfs_dquot *dqp) xfs_qm_dquot_logitem_init() argument [all...] |
H A D | xfs_qm_syscalls.c | 508 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() 641 xfs_qm_scall_getquota_fill_qc( struct xfs_mount *mp, xfs_dqtype_t type, const struct xfs_dquot *dqp, struct qc_dqblk *dst) xfs_qm_scall_getquota_fill_qc() argument 697 struct xfs_dquot *dqp; xfs_qm_scall_getquota() local 735 struct xfs_dquot *dqp; xfs_qm_scall_getquota_next() local [all...] |
H A D | xfs_qm_bhv.c | 22 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() 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 in xfs_fill_statvfs_from_dquot() 20 xfs_fill_statvfs_from_dquot( struct kstatfs *statp, struct xfs_dquot *dqp) xfs_fill_statvfs_from_dquot() argument 61 struct xfs_dquot *dqp; xfs_qm_statvfs() local [all...] |
H A D | xfs_qm.c | 37 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); 51 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() 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() 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 in xfs_qm_dqpurge() 48 xfs_qm_dquot_walk( struct xfs_mount *mp, xfs_dqtype_t type, int (*execute)(struct xfs_dquot *dqp, void *data), void *data) xfs_qm_dquot_walk() argument 118 xfs_qm_dqpurge( struct xfs_dquot *dqp, void *data) xfs_qm_dqpurge() argument 256 struct xfs_dquot *dqp; xfs_qm_dqattach_one() local 422 struct xfs_dquot *dqp = container_of(item, __releases() local 523 struct xfs_dquot *dqp; xfs_qm_shrink_scan() local 550 struct xfs_dquot *dqp; xfs_qm_set_defquota() local 581 struct xfs_dquot *dqp; xfs_qm_init_timelimits() local 1079 struct xfs_dquot *dqp; xfs_qm_quotacheck_dqadjust() local 1217 xfs_qm_flush_one( struct xfs_dquot *dqp, void *data) xfs_qm_flush_one() argument 1602 xfs_qm_dqfree_one( struct xfs_dquot *dqp) xfs_qm_dqfree_one() argument [all...] |
H A D | xfs_qm.h | 22 #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ 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 [all...] |
H A D | xfs_dquot_item.h | 27 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
|
H A D | xfs_trace.h | 863 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 [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_dquot.c | 52 struct xfs_dquot *dqp) in xfs_qm_dqdestroy() 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 in xfs_dquot_set_prealloc_limits() 51 xfs_qm_dqdestroy( struct xfs_dquot *dqp) xfs_qm_dqdestroy() argument 288 xfs_dquot_disk_alloc( struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_dquot_disk_alloc() argument 405 xfs_dquot_disk_read( struct xfs_mount *mp, struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_dquot_disk_read() argument 473 struct xfs_dquot *dqp; xfs_dquot_alloc() local 525 xfs_dquot_check_type( struct xfs_dquot *dqp, struct xfs_disk_dquot *ddqp) xfs_dquot_check_type() argument 561 xfs_dquot_from_disk( struct xfs_dquot *dqp, struct xfs_buf *bp) xfs_dquot_from_disk() argument 612 xfs_dquot_to_disk( struct xfs_disk_dquot *ddqp, struct xfs_dquot *dqp) xfs_dquot_to_disk() argument 656 struct xfs_dquot *dqp; xfs_qm_dqread() local 754 struct xfs_dquot *dqp; xfs_qm_dqget_cache_lookup() local 789 xfs_qm_dqget_cache_insert( struct xfs_mount *mp, struct xfs_quotainfo *qi, struct radix_tree_root *tree, xfs_dqid_t id, struct xfs_dquot *dqp) xfs_qm_dqget_cache_insert() argument 856 struct xfs_dquot *dqp; xfs_qm_dqget() local 945 struct xfs_dquot *dqp; xfs_qm_dqget_inode() local 1027 struct xfs_dquot *dqp; xfs_qm_dqget_next() local 1056 xfs_qm_dqput( struct xfs_dquot *dqp) xfs_qm_dqput() argument 1079 xfs_qm_dqrele( struct xfs_dquot *dqp) xfs_qm_dqrele() argument 1109 struct xfs_dquot *dqp = qip->qli_dquot; xfs_qm_dqflush_done() local 1168 xfs_qm_dqflush_check( struct xfs_dquot *dqp) xfs_qm_dqflush_check() argument 1213 xfs_qm_dqflush( struct xfs_dquot *dqp, struct xfs_buf **bpp) xfs_qm_dqflush() argument [all...] |
H A D | xfs_dquot.h | 103 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 in xfs_dqlock() 128 xfs_dqunlock(struct xfs_dquot *dqp) xfs_dqunlock() argument 134 xfs_dquot_type(const struct xfs_dquot *dqp) xfs_dquot_type() argument 171 xfs_dquot_is_enforced( const struct xfs_dquot *dqp) xfs_dquot_is_enforced() argument 190 xfs_dquot_lowsp(struct xfs_dquot *dqp) xfs_dquot_lowsp() argument 229 xfs_qm_dqhold(struct xfs_dquot *dqp) xfs_qm_dqhold() argument [all...] |
H A D | xfs_trans_dquot.c | 31 struct xfs_dquot *dqp) in xfs_trans_dqjoin() 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() 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 in xfs_trans_log_dquot() 29 xfs_trans_dqjoin( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_dqjoin() argument 53 xfs_trans_log_dquot( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_log_dquot() argument 148 xfs_trans_get_dqtrx( struct xfs_trans *tp, struct xfs_dquot *dqp) xfs_trans_get_dqtrx() argument 185 xfs_trans_mod_dquot( struct xfs_trans *tp, struct xfs_dquot *dqp, uint field, int64_t delta) xfs_trans_mod_dquot() argument 337 struct xfs_dquot *dqp; xfs_trans_apply_dquot_deltas() local 480 struct xfs_dquot *dqp; xfs_trans_unreserve_and_mod_dquots() local 535 xfs_quota_warn( struct xfs_mount *mp, struct xfs_dquot *dqp, int type) xfs_quota_warn() argument 618 xfs_trans_dqresv( struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *dqp, int64_t nblks, long ninos, uint flags) xfs_trans_dqresv() argument [all...] |
H A D | xfs_dquot_item.c | 75 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() 107 ASSERT(XFS_DQ_IS_LOCKED(dqp)); in xfs_qm_dqunpin_wait() 108 if (atomic_read(&dqp in xfs_qm_dqunpin_wait() 104 xfs_qm_dqunpin_wait( struct xfs_dquot *dqp) xfs_qm_dqunpin_wait() argument 125 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; global() variable 167 xfs_dqunlock(dqp); global() variable 175 struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; xfs_qm_dquot_logitem_release() local 212 xfs_qm_dquot_logitem_init( struct xfs_dquot *dqp) xfs_qm_dquot_logitem_init() argument [all...] |
H A D | xfs_qm.c | 40 STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); 54 int (*execute)(struct xfs_dquot *dqp, void *data), in xfs_qm_dquot_walk() 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() 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 in xfs_qm_dqpurge() 51 xfs_qm_dquot_walk( struct xfs_mount *mp, xfs_dqtype_t type, int (*execute)(struct xfs_dquot *dqp, void *data), void *data) xfs_qm_dquot_walk() argument 121 xfs_qm_dqpurge( struct xfs_dquot *dqp, void *data) xfs_qm_dqpurge() argument 254 struct xfs_dquot *dqp; xfs_qm_dqattach_one() local 418 struct xfs_dquot *dqp = container_of(item, __releases() local 527 struct xfs_dquot *dqp; xfs_qm_shrink_scan() local 554 struct xfs_dquot *dqp; xfs_qm_set_defquota() local 585 struct xfs_dquot *dqp; xfs_qm_init_timelimits() local 1080 struct xfs_dquot *dqp; xfs_qm_quotacheck_dqadjust() local 1230 xfs_qm_flush_one( struct xfs_dquot *dqp, void *data) xfs_qm_flush_one() argument 1633 xfs_qm_dqfree_one( struct xfs_dquot *dqp) xfs_qm_dqfree_one() argument 1930 struct xfs_dquot *dqp; xfs_inode_near_dquot_enforcement() local [all...] |
H A D | xfs_qm_syscalls.c | 280 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() 398 xfs_qm_scall_getquota_fill_qc( struct xfs_mount *mp, xfs_dqtype_t type, const struct xfs_dquot *dqp, struct qc_dqblk *dst) xfs_qm_scall_getquota_fill_qc() argument 454 struct xfs_dquot *dqp; xfs_qm_scall_getquota() local 499 struct xfs_dquot *dqp; xfs_qm_scall_getquota_next() local [all...] |
H A D | xfs_qm_bhv.c | 22 struct xfs_dquot *dqp) in xfs_fill_statvfs_from_dquot() 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 in xfs_fill_statvfs_from_dquot() 20 xfs_fill_statvfs_from_dquot( struct kstatfs *statp, struct xfs_dquot *dqp) xfs_fill_statvfs_from_dquot() argument 61 struct xfs_dquot *dqp; xfs_qm_statvfs() local [all...] |
H A D | xfs_qm.h | 22 #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ 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 [all...] |
H A D | xfs_dquot_item.h | 19 void xfs_qm_dquot_logitem_init(struct xfs_dquot *dqp);
|
H A D | xfs_trace.h | 1011 TP_PROTO(struct xfs_dquot *dqp), 1012 TP_ARGS(dqp), 1035 __entry->dev = dqp->q_mount->m_super->s_dev; 1036 __entry->id = dqp->q_id; 1037 __entry->type = dqp->q_type; 1038 __entry->flags = dqp->q_flags; 1039 __entry->nrefs = dqp->q_nrefs; 1041 __entry->res_bcount = dqp->q_blk.reserved; 1042 __entry->res_rtbcount = dqp->q_rtb.reserved; 1043 __entry->res_icount = dqp [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mcg.c | 157 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 294 struct mlx4_promisc_qp *dqp, *tmp_dqp; check_duplicate_entry() local 426 struct mlx4_promisc_qp *dqp; add_promisc_qp() local 557 struct mlx4_promisc_qp *dqp; remove_promisc_qp() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mcg.c | 157 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 294 struct mlx4_promisc_qp *dqp, *tmp_dqp; check_duplicate_entry() local 426 struct mlx4_promisc_qp *dqp; add_promisc_qp() local 557 struct mlx4_promisc_qp *dqp; remove_promisc_qp() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dquot_buf.c | 316 struct xfs_dquot *dqp, in xfs_dquot_to_disk_ts() 321 if (timer != 0 && (dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_to_disk_ts() 315 xfs_dquot_to_disk_ts( struct xfs_dquot *dqp, time64_t timer) xfs_dquot_to_disk_ts() argument
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dquot_buf.c | 316 struct xfs_dquot *dqp, in xfs_dquot_to_disk_ts() 321 if (timer != 0 && (dqp->q_type & XFS_DQTYPE_BIGTIME)) in xfs_dquot_to_disk_ts() 315 xfs_dquot_to_disk_ts( struct xfs_dquot *dqp, time64_t timer) xfs_dquot_to_disk_ts() argument
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
H A D | fsl_rmu.c | 226 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()
|