dqp 226 arch/powerpc/sysdev/fsl_rmu.c u32 dqp = in_be32(&rmu->msg_regs->odqdpar); dqp 227 arch/powerpc/sysdev/fsl_rmu.c int slot = (dqp - rmu->msg_tx_ring.phys) >> 5; dqp 157 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_promisc_qp *dqp = NULL; dqp 178 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); dqp 179 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!dqp) { dqp 183 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp->qpn = qpn; dqp 184 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&dqp->list, &new_entry->duplicates); dqp 229 drivers/net/ethernet/mellanox/mlx4/mcg.c if (dqp) { dqp 230 drivers/net/ethernet/mellanox/mlx4/mcg.c list_del(&dqp->list); dqp 231 drivers/net/ethernet/mellanox/mlx4/mcg.c kfree(dqp); dqp 246 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_promisc_qp *dqp; dqp 271 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &entry->duplicates, list) { dqp 272 drivers/net/ethernet/mellanox/mlx4/mcg.c if (qpn == dqp->qpn) dqp 277 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); dqp 278 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!dqp) dqp 280 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp->qpn = qpn; dqp 281 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&dqp->list, &entry->duplicates); dqp 294 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_promisc_qp *dqp, *tmp_dqp; dqp 317 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry_safe(dqp, tmp_dqp, &entry->duplicates, list) { dqp 318 drivers/net/ethernet/mellanox/mlx4/mcg.c if (dqp->qpn == qpn) { dqp 319 drivers/net/ethernet/mellanox/mlx4/mcg.c list_del(&dqp->list); dqp 320 drivers/net/ethernet/mellanox/mlx4/mcg.c kfree(dqp); dqp 426 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_promisc_qp *dqp; dqp 482 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp = kmalloc(sizeof(*dqp), GFP_KERNEL); dqp 483 drivers/net/ethernet/mellanox/mlx4/mcg.c if (!dqp) { dqp 487 drivers/net/ethernet/mellanox/mlx4/mcg.c dqp->qpn = qpn; dqp 488 drivers/net/ethernet/mellanox/mlx4/mcg.c list_add_tail(&dqp->list, dqp 519 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) { dqp 525 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); dqp 557 drivers/net/ethernet/mellanox/mlx4/mcg.c struct mlx4_promisc_qp *dqp; dqp 590 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &s_steer->promisc_qps[steer], list) dqp 591 drivers/net/ethernet/mellanox/mlx4/mcg.c mgm->qp[members_count++] = cpu_to_be32(dqp->qpn & MGM_QPN_MASK); dqp 604 drivers/net/ethernet/mellanox/mlx4/mcg.c list_for_each_entry(dqp, &entry->duplicates, list) { dqp 605 drivers/net/ethernet/mellanox/mlx4/mcg.c if (dqp->qpn == qpn) { dqp 614 drivers/net/ethernet/mellanox/mlx4/mcg.c list_del(&dqp->list); dqp 615 drivers/net/ethernet/mellanox/mlx4/mcg.c kfree(dqp); dqp 51 fs/xfs/xfs_dquot.c xfs_dquot_t *dqp) dqp 53 fs/xfs/xfs_dquot.c ASSERT(list_empty(&dqp->q_lru)); dqp 55 fs/xfs/xfs_dquot.c kmem_free(dqp->q_logitem.qli_item.li_lv_shadow); dqp 56 fs/xfs/xfs_dquot.c mutex_destroy(&dqp->q_qlock); dqp 58 fs/xfs/xfs_dquot.c XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot); dqp 59 fs/xfs/xfs_dquot.c kmem_zone_free(xfs_qm_dqzone, dqp); dqp 254 fs/xfs/xfs_dquot.c xfs_dquot_set_prealloc_limits(struct xfs_dquot *dqp) dqp 258 fs/xfs/xfs_dquot.c dqp->q_prealloc_hi_wmark = be64_to_cpu(dqp->q_core.d_blk_hardlimit); dqp 259 fs/xfs/xfs_dquot.c dqp->q_prealloc_lo_wmark = be64_to_cpu(dqp->q_core.d_blk_softlimit); dqp 260 fs/xfs/xfs_dquot.c if (!dqp->q_prealloc_lo_wmark) { dqp 261 fs/xfs/xfs_dquot.c dqp->q_prealloc_lo_wmark = dqp->q_prealloc_hi_wmark; dqp 262 fs/xfs/xfs_dquot.c do_div(dqp->q_prealloc_lo_wmark, 100); dqp 263 fs/xfs/xfs_dquot.c dqp->q_prealloc_lo_wmark *= 95; dqp 266 fs/xfs/xfs_dquot.c space = dqp->q_prealloc_hi_wmark; dqp 269 fs/xfs/xfs_dquot.c dqp->q_low_space[XFS_QLOWSP_1_PCNT] = space; dqp 270 fs/xfs/xfs_dquot.c dqp->q_low_space[XFS_QLOWSP_3_PCNT] = space * 3; dqp 271 fs/xfs/xfs_dquot.c dqp->q_low_space[XFS_QLOWSP_5_PCNT] = space * 5; dqp 282 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp, dqp 289 fs/xfs/xfs_dquot.c struct xfs_inode *quotip = xfs_quota_inode(mp, dqp->dq_flags); dqp 293 fs/xfs/xfs_dquot.c trace_xfs_dqalloc(dqp); dqp 296 fs/xfs/xfs_dquot.c if (!xfs_this_quota_on(dqp->q_mount, dqp->dq_flags)) { dqp 307 fs/xfs/xfs_dquot.c error = xfs_bmapi_write(tp, quotip, dqp->q_fileoffset, dqp 320 fs/xfs/xfs_dquot.c dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock); dqp 323 fs/xfs/xfs_dquot.c bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, dqp->q_blkno, dqp 333 fs/xfs/xfs_dquot.c xfs_qm_init_dquot_blk(tp, mp, be32_to_cpu(dqp->q_core.d_id), dqp 334 fs/xfs/xfs_dquot.c dqp->dq_flags & XFS_DQ_ALLTYPES, bp); dqp 376 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp, dqp 381 fs/xfs/xfs_dquot.c struct xfs_inode *quotip = xfs_quota_inode(mp, dqp->dq_flags); dqp 387 fs/xfs/xfs_dquot.c if (!xfs_this_quota_on(mp, dqp->dq_flags)) { dqp 399 fs/xfs/xfs_dquot.c error = xfs_bmapi_read(quotip, dqp->q_fileoffset, dqp 411 fs/xfs/xfs_dquot.c trace_xfs_dqtobp_read(dqp); dqp 417 fs/xfs/xfs_dquot.c dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock); dqp 419 fs/xfs/xfs_dquot.c error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno, dqp 441 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 443 fs/xfs/xfs_dquot.c dqp = kmem_zone_zalloc(xfs_qm_dqzone, 0); dqp 445 fs/xfs/xfs_dquot.c dqp->dq_flags = type; dqp 446 fs/xfs/xfs_dquot.c dqp->q_core.d_id = cpu_to_be32(id); dqp 447 fs/xfs/xfs_dquot.c dqp->q_mount = mp; dqp 448 fs/xfs/xfs_dquot.c INIT_LIST_HEAD(&dqp->q_lru); dqp 449 fs/xfs/xfs_dquot.c mutex_init(&dqp->q_qlock); dqp 450 fs/xfs/xfs_dquot.c init_waitqueue_head(&dqp->q_pinwait); dqp 451 fs/xfs/xfs_dquot.c dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; dqp 455 fs/xfs/xfs_dquot.c dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * dqp 463 fs/xfs/xfs_dquot.c init_completion(&dqp->q_flush); dqp 464 fs/xfs/xfs_dquot.c complete(&dqp->q_flush); dqp 475 fs/xfs/xfs_dquot.c lockdep_set_class(&dqp->q_qlock, &xfs_dquot_group_class); dqp 478 fs/xfs/xfs_dquot.c lockdep_set_class(&dqp->q_qlock, &xfs_dquot_project_class); dqp 485 fs/xfs/xfs_dquot.c xfs_qm_dquot_logitem_init(dqp); dqp 488 fs/xfs/xfs_dquot.c return dqp; dqp 494 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp, dqp 497 fs/xfs/xfs_dquot.c struct xfs_disk_dquot *ddqp = bp->b_addr + dqp->q_bufoffset; dqp 500 fs/xfs/xfs_dquot.c memcpy(&dqp->q_core, ddqp, sizeof(xfs_disk_dquot_t)); dqp 506 fs/xfs/xfs_dquot.c dqp->q_res_bcount = be64_to_cpu(ddqp->d_bcount); dqp 507 fs/xfs/xfs_dquot.c dqp->q_res_icount = be64_to_cpu(ddqp->d_icount); dqp 508 fs/xfs/xfs_dquot.c dqp->q_res_rtbcount = be64_to_cpu(ddqp->d_rtbcount); dqp 511 fs/xfs/xfs_dquot.c xfs_dquot_set_prealloc_limits(dqp); dqp 518 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp, dqp 529 fs/xfs/xfs_dquot.c error = xfs_dquot_disk_alloc(&tp, dqp, bpp); dqp 564 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 568 fs/xfs/xfs_dquot.c dqp = xfs_dquot_alloc(mp, id, type); dqp 569 fs/xfs/xfs_dquot.c trace_xfs_dqread(dqp); dqp 572 fs/xfs/xfs_dquot.c error = xfs_dquot_disk_read(mp, dqp, &bp); dqp 574 fs/xfs/xfs_dquot.c error = xfs_qm_dqread_alloc(mp, dqp, &bp); dqp 585 fs/xfs/xfs_dquot.c xfs_dquot_from_disk(dqp, bp); dqp 588 fs/xfs/xfs_dquot.c *dqpp = dqp; dqp 592 fs/xfs/xfs_dquot.c trace_xfs_dqread_fail(dqp); dqp 593 fs/xfs/xfs_dquot.c xfs_qm_dqdestroy(dqp); dqp 662 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 666 fs/xfs/xfs_dquot.c dqp = radix_tree_lookup(tree, id); dqp 667 fs/xfs/xfs_dquot.c if (!dqp) { dqp 673 fs/xfs/xfs_dquot.c xfs_dqlock(dqp); dqp 674 fs/xfs/xfs_dquot.c if (dqp->dq_flags & XFS_DQ_FREEING) { dqp 675 fs/xfs/xfs_dquot.c xfs_dqunlock(dqp); dqp 677 fs/xfs/xfs_dquot.c trace_xfs_dqget_freeing(dqp); dqp 682 fs/xfs/xfs_dquot.c dqp->q_nrefs++; dqp 685 fs/xfs/xfs_dquot.c trace_xfs_dqget_hit(dqp); dqp 687 fs/xfs/xfs_dquot.c return dqp; dqp 702 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp) dqp 707 fs/xfs/xfs_dquot.c error = radix_tree_insert(tree, id, dqp); dqp 712 fs/xfs/xfs_dquot.c trace_xfs_dqget_dup(dqp); dqp 717 fs/xfs/xfs_dquot.c xfs_dqlock(dqp); dqp 718 fs/xfs/xfs_dquot.c dqp->q_nrefs = 1; dqp 768 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 776 fs/xfs/xfs_dquot.c dqp = xfs_qm_dqget_cache_lookup(mp, qi, tree, id); dqp 777 fs/xfs/xfs_dquot.c if (dqp) { dqp 778 fs/xfs/xfs_dquot.c *O_dqpp = dqp; dqp 782 fs/xfs/xfs_dquot.c error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp); dqp 786 fs/xfs/xfs_dquot.c error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp); dqp 792 fs/xfs/xfs_dquot.c xfs_qm_dqdestroy(dqp); dqp 797 fs/xfs/xfs_dquot.c trace_xfs_dqget_miss(dqp); dqp 798 fs/xfs/xfs_dquot.c *O_dqpp = dqp; dqp 857 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 871 fs/xfs/xfs_dquot.c dqp = xfs_qm_dqget_cache_lookup(mp, qi, tree, id); dqp 872 fs/xfs/xfs_dquot.c if (dqp) { dqp 873 fs/xfs/xfs_dquot.c *O_dqpp = dqp; dqp 885 fs/xfs/xfs_dquot.c error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp); dqp 899 fs/xfs/xfs_dquot.c xfs_qm_dqdestroy(dqp); dqp 900 fs/xfs/xfs_dquot.c dqp = dqp1; dqp 901 fs/xfs/xfs_dquot.c xfs_dqlock(dqp); dqp 906 fs/xfs/xfs_dquot.c xfs_qm_dqdestroy(dqp); dqp 910 fs/xfs/xfs_dquot.c error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp); dqp 916 fs/xfs/xfs_dquot.c xfs_qm_dqdestroy(dqp); dqp 923 fs/xfs/xfs_dquot.c trace_xfs_dqget_miss(dqp); dqp 924 fs/xfs/xfs_dquot.c *O_dqpp = dqp; dqp 939 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp; dqp 944 fs/xfs/xfs_dquot.c error = xfs_qm_dqget(mp, id, type, false, &dqp); dqp 950 fs/xfs/xfs_dquot.c if (!XFS_IS_DQUOT_UNINITIALIZED(dqp)) { dqp 951 fs/xfs/xfs_dquot.c *dqpp = dqp; dqp 955 fs/xfs/xfs_dquot.c xfs_qm_dqput(dqp); dqp 969 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp) dqp 971 fs/xfs/xfs_dquot.c ASSERT(dqp->q_nrefs > 0); dqp 972 fs/xfs/xfs_dquot.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 974 fs/xfs/xfs_dquot.c trace_xfs_dqput(dqp); dqp 976 fs/xfs/xfs_dquot.c if (--dqp->q_nrefs == 0) { dqp 977 fs/xfs/xfs_dquot.c struct xfs_quotainfo *qi = dqp->q_mount->m_quotainfo; dqp 978 fs/xfs/xfs_dquot.c trace_xfs_dqput_free(dqp); dqp 980 fs/xfs/xfs_dquot.c if (list_lru_add(&qi->qi_lru, &dqp->q_lru)) dqp 981 fs/xfs/xfs_dquot.c XFS_STATS_INC(dqp->q_mount, xs_qm_dquot_unused); dqp 983 fs/xfs/xfs_dquot.c xfs_dqunlock(dqp); dqp 992 fs/xfs/xfs_dquot.c xfs_dquot_t *dqp) dqp 994 fs/xfs/xfs_dquot.c if (!dqp) dqp 997 fs/xfs/xfs_dquot.c trace_xfs_dqrele(dqp); dqp 999 fs/xfs/xfs_dquot.c xfs_dqlock(dqp); dqp 1006 fs/xfs/xfs_dquot.c xfs_qm_dqput(dqp); dqp 1022 fs/xfs/xfs_dquot.c xfs_dquot_t *dqp = qip->qli_dquot; dqp 1054 fs/xfs/xfs_dquot.c xfs_dqfunlock(dqp); dqp 1067 fs/xfs/xfs_dquot.c struct xfs_dquot *dqp, dqp 1070 fs/xfs/xfs_dquot.c struct xfs_mount *mp = dqp->q_mount; dqp 1077 fs/xfs/xfs_dquot.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 1078 fs/xfs/xfs_dquot.c ASSERT(!completion_done(&dqp->q_flush)); dqp 1080 fs/xfs/xfs_dquot.c trace_xfs_dqflush(dqp); dqp 1084 fs/xfs/xfs_dquot.c xfs_qm_dqunpin_wait(dqp); dqp 1095 fs/xfs/xfs_dquot.c struct xfs_log_item *lip = &dqp->q_logitem.qli_item; dqp 1096 fs/xfs/xfs_dquot.c dqp->dq_flags &= ~XFS_DQ_DIRTY; dqp 1107 fs/xfs/xfs_dquot.c error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno, dqp 1116 fs/xfs/xfs_dquot.c dqb = bp->b_addr + dqp->q_bufoffset; dqp 1127 fs/xfs/xfs_dquot.c xfs_dqfunlock(dqp); dqp 1133 fs/xfs/xfs_dquot.c memcpy(ddqp, &dqp->q_core, sizeof(xfs_disk_dquot_t)); dqp 1138 fs/xfs/xfs_dquot.c dqp->dq_flags &= ~XFS_DQ_DIRTY; dqp 1140 fs/xfs/xfs_dquot.c xfs_trans_ail_copy_lsn(mp->m_ail, &dqp->q_logitem.qli_flush_lsn, dqp 1141 fs/xfs/xfs_dquot.c &dqp->q_logitem.qli_item.li_lsn); dqp 1153 fs/xfs/xfs_dquot.c dqb->dd_lsn = cpu_to_be64(dqp->q_logitem.qli_item.li_lsn); dqp 1163 fs/xfs/xfs_dquot.c &dqp->q_logitem.qli_item); dqp 1170 fs/xfs/xfs_dquot.c trace_xfs_dqflush_force(dqp); dqp 1174 fs/xfs/xfs_dquot.c trace_xfs_dqflush_done(dqp); dqp 1179 fs/xfs/xfs_dquot.c xfs_dqfunlock(dqp); dqp 71 fs/xfs/xfs_dquot.h static inline void xfs_dqflock(xfs_dquot_t *dqp) dqp 73 fs/xfs/xfs_dquot.h wait_for_completion(&dqp->q_flush); dqp 76 fs/xfs/xfs_dquot.h static inline bool xfs_dqflock_nowait(xfs_dquot_t *dqp) dqp 78 fs/xfs/xfs_dquot.h return try_wait_for_completion(&dqp->q_flush); dqp 81 fs/xfs/xfs_dquot.h static inline void xfs_dqfunlock(xfs_dquot_t *dqp) dqp 83 fs/xfs/xfs_dquot.h complete(&dqp->q_flush); dqp 86 fs/xfs/xfs_dquot.h static inline int xfs_dqlock_nowait(struct xfs_dquot *dqp) dqp 88 fs/xfs/xfs_dquot.h return mutex_trylock(&dqp->q_qlock); dqp 91 fs/xfs/xfs_dquot.h static inline void xfs_dqlock(struct xfs_dquot *dqp) dqp 93 fs/xfs/xfs_dquot.h mutex_lock(&dqp->q_qlock); dqp 96 fs/xfs/xfs_dquot.h static inline void xfs_dqunlock(struct xfs_dquot *dqp) dqp 98 fs/xfs/xfs_dquot.h mutex_unlock(&dqp->q_qlock); dqp 133 fs/xfs/xfs_dquot.h static inline bool xfs_dquot_lowsp(struct xfs_dquot *dqp) dqp 137 fs/xfs/xfs_dquot.h freesp = be64_to_cpu(dqp->q_core.d_blk_hardlimit) - dqp->q_res_bcount; dqp 138 fs/xfs/xfs_dquot.h if (freesp < dqp->q_low_space[XFS_QLOWSP_1_PCNT]) dqp 144 fs/xfs/xfs_dquot.h #define XFS_DQ_IS_LOCKED(dqp) (mutex_is_locked(&((dqp)->q_qlock))) dqp 145 fs/xfs/xfs_dquot.h #define XFS_DQ_IS_DIRTY(dqp) ((dqp)->dq_flags & XFS_DQ_DIRTY) dqp 146 fs/xfs/xfs_dquot.h #define XFS_QM_ISUDQ(dqp) ((dqp)->dq_flags & XFS_DQ_USER) dqp 147 fs/xfs/xfs_dquot.h #define XFS_QM_ISPDQ(dqp) ((dqp)->dq_flags & XFS_DQ_PROJ) dqp 148 fs/xfs/xfs_dquot.h #define XFS_QM_ISGDQ(dqp) ((dqp)->dq_flags & XFS_DQ_GROUP) dqp 176 fs/xfs/xfs_dquot.h static inline struct xfs_dquot *xfs_qm_dqhold(struct xfs_dquot *dqp) dqp 178 fs/xfs/xfs_dquot.h xfs_dqlock(dqp); dqp 179 fs/xfs/xfs_dquot.h dqp->q_nrefs++; dqp 180 fs/xfs/xfs_dquot.h xfs_dqunlock(dqp); dqp 181 fs/xfs/xfs_dquot.h return dqp; dqp 73 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; dqp 75 fs/xfs/xfs_dquot_item.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 76 fs/xfs/xfs_dquot_item.c atomic_inc(&dqp->q_pincount); dqp 90 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; dqp 92 fs/xfs/xfs_dquot_item.c ASSERT(atomic_read(&dqp->q_pincount) > 0); dqp 93 fs/xfs/xfs_dquot_item.c if (atomic_dec_and_test(&dqp->q_pincount)) dqp 94 fs/xfs/xfs_dquot_item.c wake_up(&dqp->q_pinwait); dqp 103 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp) dqp 105 fs/xfs/xfs_dquot_item.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 106 fs/xfs/xfs_dquot_item.c if (atomic_read(&dqp->q_pincount) == 0) dqp 112 fs/xfs/xfs_dquot_item.c xfs_log_force(dqp->q_mount, 0); dqp 113 fs/xfs/xfs_dquot_item.c wait_event(dqp->q_pinwait, (atomic_read(&dqp->q_pincount) == 0)); dqp 140 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; dqp 145 fs/xfs/xfs_dquot_item.c if (atomic_read(&dqp->q_pincount) > 0) dqp 163 fs/xfs/xfs_dquot_item.c if (!xfs_dqlock_nowait(dqp)) dqp 170 fs/xfs/xfs_dquot_item.c if (atomic_read(&dqp->q_pincount) > 0) { dqp 180 fs/xfs/xfs_dquot_item.c if (!xfs_dqflock_nowait(dqp)) { dqp 187 fs/xfs/xfs_dquot_item.c error = xfs_qm_dqflush(dqp, &bp); dqp 196 fs/xfs/xfs_dquot_item.c xfs_dqunlock(dqp); dqp 204 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp = DQUOT_ITEM(lip)->qli_dquot; dqp 206 fs/xfs/xfs_dquot_item.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 214 fs/xfs/xfs_dquot_item.c xfs_dqunlock(dqp); dqp 243 fs/xfs/xfs_dquot_item.c struct xfs_dquot *dqp) dqp 245 fs/xfs/xfs_dquot_item.c struct xfs_dq_logitem *lp = &dqp->q_logitem; dqp 247 fs/xfs/xfs_dquot_item.c xfs_log_item_init(dqp->q_mount, &lp->qli_item, XFS_LI_DQUOT, dqp 249 fs/xfs/xfs_dquot_item.c lp->qli_dquot = dqp; dqp 36 fs/xfs/xfs_qm.c STATIC void xfs_qm_dqfree_one(struct xfs_dquot *dqp); dqp 50 fs/xfs/xfs_qm.c int (*execute)(struct xfs_dquot *dqp, void *data), dqp 79 fs/xfs/xfs_qm.c struct xfs_dquot *dqp = batch[i]; dqp 81 fs/xfs/xfs_qm.c next_index = be32_to_cpu(dqp->q_core.d_id) + 1; dqp 118 fs/xfs/xfs_qm.c struct xfs_dquot *dqp, dqp 121 fs/xfs/xfs_qm.c struct xfs_mount *mp = dqp->q_mount; dqp 124 fs/xfs/xfs_qm.c xfs_dqlock(dqp); dqp 125 fs/xfs/xfs_qm.c if ((dqp->dq_flags & XFS_DQ_FREEING) || dqp->q_nrefs != 0) { dqp 126 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 130 fs/xfs/xfs_qm.c dqp->dq_flags |= XFS_DQ_FREEING; dqp 132 fs/xfs/xfs_qm.c xfs_dqflock(dqp); dqp 139 fs/xfs/xfs_qm.c if (XFS_DQ_IS_DIRTY(dqp)) { dqp 147 fs/xfs/xfs_qm.c error = xfs_qm_dqflush(dqp, &bp); dqp 152 fs/xfs/xfs_qm.c xfs_dqflock(dqp); dqp 155 fs/xfs/xfs_qm.c ASSERT(atomic_read(&dqp->q_pincount) == 0); dqp 157 fs/xfs/xfs_qm.c !test_bit(XFS_LI_IN_AIL, &dqp->q_logitem.qli_item.li_flags)); dqp 159 fs/xfs/xfs_qm.c xfs_dqfunlock(dqp); dqp 160 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 162 fs/xfs/xfs_qm.c radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), dqp 163 fs/xfs/xfs_qm.c be32_to_cpu(dqp->q_core.d_id)); dqp 170 fs/xfs/xfs_qm.c ASSERT(!list_empty(&dqp->q_lru)); dqp 171 fs/xfs/xfs_qm.c list_lru_del(&qi->qi_lru, &dqp->q_lru); dqp 174 fs/xfs/xfs_qm.c xfs_qm_dqdestroy(dqp); dqp 252 fs/xfs/xfs_qm.c xfs_dquot_t *dqp; dqp 263 fs/xfs/xfs_qm.c dqp = *IO_idqpp; dqp 264 fs/xfs/xfs_qm.c if (dqp) { dqp 265 fs/xfs/xfs_qm.c trace_xfs_dqattach_found(dqp); dqp 275 fs/xfs/xfs_qm.c error = xfs_qm_dqget_inode(ip, type, doalloc, &dqp); dqp 279 fs/xfs/xfs_qm.c trace_xfs_dqattach_get(dqp); dqp 285 fs/xfs/xfs_qm.c *IO_idqpp = dqp; dqp 286 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 418 fs/xfs/xfs_qm.c struct xfs_dquot *dqp = container_of(item, dqp 422 fs/xfs/xfs_qm.c if (!xfs_dqlock_nowait(dqp)) dqp 429 fs/xfs/xfs_qm.c if (dqp->q_nrefs) { dqp 430 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 431 fs/xfs/xfs_qm.c XFS_STATS_INC(dqp->q_mount, xs_qm_dqwants); dqp 433 fs/xfs/xfs_qm.c trace_xfs_dqreclaim_want(dqp); dqp 434 fs/xfs/xfs_qm.c list_lru_isolate(lru, &dqp->q_lru); dqp 435 fs/xfs/xfs_qm.c XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot_unused); dqp 444 fs/xfs/xfs_qm.c if (!xfs_dqflock_nowait(dqp)) { dqp 445 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 449 fs/xfs/xfs_qm.c if (XFS_DQ_IS_DIRTY(dqp)) { dqp 453 fs/xfs/xfs_qm.c trace_xfs_dqreclaim_dirty(dqp); dqp 458 fs/xfs/xfs_qm.c error = xfs_qm_dqflush(dqp, &bp); dqp 466 fs/xfs/xfs_qm.c xfs_dqfunlock(dqp); dqp 471 fs/xfs/xfs_qm.c dqp->dq_flags |= XFS_DQ_FREEING; dqp 472 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 474 fs/xfs/xfs_qm.c ASSERT(dqp->q_nrefs == 0); dqp 475 fs/xfs/xfs_qm.c list_lru_isolate_move(lru, &dqp->q_lru, &isol->dispose); dqp 476 fs/xfs/xfs_qm.c XFS_STATS_DEC(dqp->q_mount, xs_qm_dquot_unused); dqp 477 fs/xfs/xfs_qm.c trace_xfs_dqreclaim_done(dqp); dqp 478 fs/xfs/xfs_qm.c XFS_STATS_INC(dqp->q_mount, xs_qm_dqreclaims); dqp 482 fs/xfs/xfs_qm.c trace_xfs_dqreclaim_busy(dqp); dqp 483 fs/xfs/xfs_qm.c XFS_STATS_INC(dqp->q_mount, xs_qm_dqreclaim_misses); dqp 487 fs/xfs/xfs_qm.c trace_xfs_dqreclaim_busy(dqp); dqp 488 fs/xfs/xfs_qm.c XFS_STATS_INC(dqp->q_mount, xs_qm_dqreclaim_misses); dqp 489 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 519 fs/xfs/xfs_qm.c struct xfs_dquot *dqp; dqp 521 fs/xfs/xfs_qm.c dqp = list_first_entry(&isol.dispose, struct xfs_dquot, q_lru); dqp 522 fs/xfs/xfs_qm.c list_del_init(&dqp->q_lru); dqp 523 fs/xfs/xfs_qm.c xfs_qm_dqfree_one(dqp); dqp 546 fs/xfs/xfs_qm.c xfs_dquot_t *dqp; dqp 551 fs/xfs/xfs_qm.c error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); dqp 555 fs/xfs/xfs_qm.c ddqp = &dqp->q_core; dqp 556 fs/xfs/xfs_qm.c defq = xfs_get_defquota(dqp, qinf); dqp 568 fs/xfs/xfs_qm.c xfs_qm_dqdestroy(dqp); dqp 578 fs/xfs/xfs_qm.c struct xfs_dquot *dqp; dqp 606 fs/xfs/xfs_qm.c error = xfs_qm_dqget_uncached(mp, 0, type, &dqp); dqp 610 fs/xfs/xfs_qm.c ddqp = &dqp->q_core; dqp 629 fs/xfs/xfs_qm.c xfs_qm_dqdestroy(dqp); dqp 1063 fs/xfs/xfs_qm.c struct xfs_dquot *dqp; dqp 1068 fs/xfs/xfs_qm.c error = xfs_qm_dqget(mp, id, type, true, &dqp); dqp 1078 fs/xfs/xfs_qm.c trace_xfs_dqadjust(dqp); dqp 1084 fs/xfs/xfs_qm.c be64_add_cpu(&dqp->q_core.d_icount, 1); dqp 1085 fs/xfs/xfs_qm.c dqp->q_res_icount++; dqp 1087 fs/xfs/xfs_qm.c be64_add_cpu(&dqp->q_core.d_bcount, nblks); dqp 1088 fs/xfs/xfs_qm.c dqp->q_res_bcount += nblks; dqp 1091 fs/xfs/xfs_qm.c be64_add_cpu(&dqp->q_core.d_rtbcount, rtblks); dqp 1092 fs/xfs/xfs_qm.c dqp->q_res_rtbcount += rtblks; dqp 1100 fs/xfs/xfs_qm.c if (dqp->q_core.d_id) { dqp 1101 fs/xfs/xfs_qm.c xfs_qm_adjust_dqlimits(mp, dqp); dqp 1102 fs/xfs/xfs_qm.c xfs_qm_adjust_dqtimers(mp, &dqp->q_core); dqp 1105 fs/xfs/xfs_qm.c dqp->dq_flags |= XFS_DQ_DIRTY; dqp 1106 fs/xfs/xfs_qm.c xfs_qm_dqput(dqp); dqp 1202 fs/xfs/xfs_qm.c struct xfs_dquot *dqp, dqp 1205 fs/xfs/xfs_qm.c struct xfs_mount *mp = dqp->q_mount; dqp 1210 fs/xfs/xfs_qm.c xfs_dqlock(dqp); dqp 1211 fs/xfs/xfs_qm.c if (dqp->dq_flags & XFS_DQ_FREEING) dqp 1213 fs/xfs/xfs_qm.c if (!XFS_DQ_IS_DIRTY(dqp)) dqp 1224 fs/xfs/xfs_qm.c if (!xfs_dqflock_nowait(dqp)) { dqp 1226 fs/xfs/xfs_qm.c bp = xfs_buf_incore(mp->m_ddev_targp, dqp->q_blkno, dqp 1241 fs/xfs/xfs_qm.c error = xfs_qm_dqflush(dqp, &bp); dqp 1248 fs/xfs/xfs_qm.c xfs_dqunlock(dqp); dqp 1580 fs/xfs/xfs_qm.c struct xfs_dquot *dqp) dqp 1582 fs/xfs/xfs_qm.c struct xfs_mount *mp = dqp->q_mount; dqp 1586 fs/xfs/xfs_qm.c radix_tree_delete(xfs_dquot_tree(qi, dqp->q_core.d_flags), dqp 1587 fs/xfs/xfs_qm.c be32_to_cpu(dqp->q_core.d_id)); dqp 1592 fs/xfs/xfs_qm.c xfs_qm_dqdestroy(dqp); dqp 22 fs/xfs/xfs_qm.h #define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ dqp 23 fs/xfs/xfs_qm.h !dqp->q_core.d_blk_hardlimit && \ dqp 24 fs/xfs/xfs_qm.h !dqp->q_core.d_blk_softlimit && \ dqp 25 fs/xfs/xfs_qm.h !dqp->q_core.d_rtb_hardlimit && \ dqp 26 fs/xfs/xfs_qm.h !dqp->q_core.d_rtb_softlimit && \ dqp 27 fs/xfs/xfs_qm.h !dqp->q_core.d_ino_hardlimit && \ dqp 28 fs/xfs/xfs_qm.h !dqp->q_core.d_ino_softlimit && \ dqp 29 fs/xfs/xfs_qm.h !dqp->q_core.d_bcount && \ dqp 30 fs/xfs/xfs_qm.h !dqp->q_core.d_rtbcount && \ dqp 31 fs/xfs/xfs_qm.h !dqp->q_core.d_icount) dqp 116 fs/xfs/xfs_qm.h extern void xfs_trans_mod_dquot(struct xfs_trans *tp, struct xfs_dquot *dqp, dqp 167 fs/xfs/xfs_qm.h xfs_get_defquota(struct xfs_dquot *dqp, struct xfs_quotainfo *qi) dqp 171 fs/xfs/xfs_qm.h if (XFS_QM_ISUDQ(dqp)) dqp 173 fs/xfs/xfs_qm.h else if (XFS_QM_ISGDQ(dqp)) dqp 176 fs/xfs/xfs_qm.h ASSERT(XFS_QM_ISPDQ(dqp)); dqp 22 fs/xfs/xfs_qm_bhv.c struct xfs_dquot *dqp) dqp 26 fs/xfs/xfs_qm_bhv.c limit = dqp->q_core.d_blk_softlimit ? dqp 27 fs/xfs/xfs_qm_bhv.c be64_to_cpu(dqp->q_core.d_blk_softlimit) : dqp 28 fs/xfs/xfs_qm_bhv.c be64_to_cpu(dqp->q_core.d_blk_hardlimit); dqp 32 fs/xfs/xfs_qm_bhv.c (statp->f_blocks > dqp->q_res_bcount) ? dqp 33 fs/xfs/xfs_qm_bhv.c (statp->f_blocks - dqp->q_res_bcount) : 0; dqp 36 fs/xfs/xfs_qm_bhv.c limit = dqp->q_core.d_ino_softlimit ? dqp 37 fs/xfs/xfs_qm_bhv.c be64_to_cpu(dqp->q_core.d_ino_softlimit) : dqp 38 fs/xfs/xfs_qm_bhv.c be64_to_cpu(dqp->q_core.d_ino_hardlimit); dqp 42 fs/xfs/xfs_qm_bhv.c (statp->f_files > dqp->q_res_icount) ? dqp 43 fs/xfs/xfs_qm_bhv.c (statp->f_files - dqp->q_res_icount) : 0; dqp 61 fs/xfs/xfs_qm_bhv.c xfs_dquot_t *dqp; dqp 63 fs/xfs/xfs_qm_bhv.c if (!xfs_qm_dqget(mp, xfs_get_projid(ip), XFS_DQ_PROJ, false, &dqp)) { dqp 64 fs/xfs/xfs_qm_bhv.c xfs_fill_statvfs_from_dquot(statp, dqp); dqp 65 fs/xfs/xfs_qm_bhv.c xfs_qm_dqput(dqp); dqp 387 fs/xfs/xfs_qm_syscalls.c struct xfs_dquot *dqp; dqp 412 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_dqget(mp, id, type, true, &dqp); dqp 418 fs/xfs/xfs_qm_syscalls.c defq = xfs_get_defquota(dqp, q); dqp 419 fs/xfs/xfs_qm_syscalls.c xfs_dqunlock(dqp); dqp 425 fs/xfs/xfs_qm_syscalls.c xfs_dqlock(dqp); dqp 426 fs/xfs/xfs_qm_syscalls.c xfs_trans_dqjoin(tp, dqp); dqp 427 fs/xfs/xfs_qm_syscalls.c ddq = &dqp->q_core; dqp 441 fs/xfs/xfs_qm_syscalls.c xfs_dquot_set_prealloc_limits(dqp); dqp 529 fs/xfs/xfs_qm_syscalls.c dqp->dq_flags |= XFS_DQ_DIRTY; dqp 530 fs/xfs/xfs_qm_syscalls.c xfs_trans_log_dquot(tp, dqp); dqp 535 fs/xfs/xfs_qm_syscalls.c xfs_qm_dqrele(dqp); dqp 614 fs/xfs/xfs_qm_syscalls.c const struct xfs_dquot *dqp, dqp 619 fs/xfs/xfs_qm_syscalls.c XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_hardlimit)); dqp 621 fs/xfs/xfs_qm_syscalls.c XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_blk_softlimit)); dqp 622 fs/xfs/xfs_qm_syscalls.c dst->d_ino_hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); dqp 623 fs/xfs/xfs_qm_syscalls.c dst->d_ino_softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); dqp 624 fs/xfs/xfs_qm_syscalls.c dst->d_space = XFS_FSB_TO_B(mp, dqp->q_res_bcount); dqp 625 fs/xfs/xfs_qm_syscalls.c dst->d_ino_count = dqp->q_res_icount; dqp 626 fs/xfs/xfs_qm_syscalls.c dst->d_spc_timer = be32_to_cpu(dqp->q_core.d_btimer); dqp 627 fs/xfs/xfs_qm_syscalls.c dst->d_ino_timer = be32_to_cpu(dqp->q_core.d_itimer); dqp 628 fs/xfs/xfs_qm_syscalls.c dst->d_ino_warns = be16_to_cpu(dqp->q_core.d_iwarns); dqp 629 fs/xfs/xfs_qm_syscalls.c dst->d_spc_warns = be16_to_cpu(dqp->q_core.d_bwarns); dqp 631 fs/xfs/xfs_qm_syscalls.c XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_hardlimit)); dqp 633 fs/xfs/xfs_qm_syscalls.c XFS_FSB_TO_B(mp, be64_to_cpu(dqp->q_core.d_rtb_softlimit)); dqp 634 fs/xfs/xfs_qm_syscalls.c dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_res_rtbcount); dqp 635 fs/xfs/xfs_qm_syscalls.c dst->d_rt_spc_timer = be32_to_cpu(dqp->q_core.d_rtbtimer); dqp 636 fs/xfs/xfs_qm_syscalls.c dst->d_rt_spc_warns = be16_to_cpu(dqp->q_core.d_rtbwarns); dqp 644 fs/xfs/xfs_qm_syscalls.c dqp->q_core.d_flags == XFS_DQ_USER) || dqp 646 fs/xfs/xfs_qm_syscalls.c dqp->q_core.d_flags == XFS_DQ_GROUP) || dqp 648 fs/xfs/xfs_qm_syscalls.c dqp->q_core.d_flags == XFS_DQ_PROJ)) { dqp 658 fs/xfs/xfs_qm_syscalls.c dqp->q_core.d_id != 0) { dqp 679 fs/xfs/xfs_qm_syscalls.c struct xfs_dquot *dqp; dqp 686 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_dqget(mp, id, type, false, &dqp); dqp 694 fs/xfs/xfs_qm_syscalls.c if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) { dqp 699 fs/xfs/xfs_qm_syscalls.c xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); dqp 702 fs/xfs/xfs_qm_syscalls.c xfs_qm_dqput(dqp); dqp 717 fs/xfs/xfs_qm_syscalls.c struct xfs_dquot *dqp; dqp 720 fs/xfs/xfs_qm_syscalls.c error = xfs_qm_dqget_next(mp, *id, type, &dqp); dqp 725 fs/xfs/xfs_qm_syscalls.c *id = be32_to_cpu(dqp->q_core.d_id); dqp 727 fs/xfs/xfs_qm_syscalls.c xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); dqp 729 fs/xfs/xfs_qm_syscalls.c xfs_qm_dqput(dqp); dqp 856 fs/xfs/xfs_trace.h TP_PROTO(struct xfs_dquot *dqp), dqp 857 fs/xfs/xfs_trace.h TP_ARGS(dqp), dqp 872 fs/xfs/xfs_trace.h __entry->dev = dqp->q_mount->m_super->s_dev; dqp 873 fs/xfs/xfs_trace.h __entry->id = be32_to_cpu(dqp->q_core.d_id); dqp 874 fs/xfs/xfs_trace.h __entry->flags = dqp->dq_flags; dqp 875 fs/xfs/xfs_trace.h __entry->nrefs = dqp->q_nrefs; dqp 876 fs/xfs/xfs_trace.h __entry->res_bcount = dqp->q_res_bcount; dqp 877 fs/xfs/xfs_trace.h __entry->bcount = be64_to_cpu(dqp->q_core.d_bcount); dqp 878 fs/xfs/xfs_trace.h __entry->icount = be64_to_cpu(dqp->q_core.d_icount); dqp 880 fs/xfs/xfs_trace.h be64_to_cpu(dqp->q_core.d_blk_hardlimit); dqp 882 fs/xfs/xfs_trace.h be64_to_cpu(dqp->q_core.d_blk_softlimit); dqp 884 fs/xfs/xfs_trace.h be64_to_cpu(dqp->q_core.d_ino_hardlimit); dqp 886 fs/xfs/xfs_trace.h be64_to_cpu(dqp->q_core.d_ino_softlimit); dqp 906 fs/xfs/xfs_trace.h TP_PROTO(struct xfs_dquot *dqp), \ dqp 907 fs/xfs/xfs_trace.h TP_ARGS(dqp)) dqp 29 fs/xfs/xfs_trans_dquot.c xfs_dquot_t *dqp) dqp 31 fs/xfs/xfs_trans_dquot.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 32 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_logitem.qli_dquot == dqp); dqp 37 fs/xfs/xfs_trans_dquot.c xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); dqp 53 fs/xfs/xfs_trans_dquot.c xfs_dquot_t *dqp) dqp 55 fs/xfs/xfs_trans_dquot.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 58 fs/xfs/xfs_trans_dquot.c set_bit(XFS_LI_DIRTY, &dqp->q_logitem.qli_item.li_flags); dqp 153 fs/xfs/xfs_trans_dquot.c struct xfs_dquot *dqp) dqp 158 fs/xfs/xfs_trans_dquot.c if (XFS_QM_ISUDQ(dqp)) dqp 160 fs/xfs/xfs_trans_dquot.c else if (XFS_QM_ISGDQ(dqp)) dqp 162 fs/xfs/xfs_trans_dquot.c else if (XFS_QM_ISPDQ(dqp)) dqp 169 fs/xfs/xfs_trans_dquot.c qa[i].qt_dquot == dqp) dqp 185 fs/xfs/xfs_trans_dquot.c struct xfs_dquot *dqp, dqp 201 fs/xfs/xfs_trans_dquot.c qtrx = xfs_trans_get_dqtrx(tp, dqp); dqp 204 fs/xfs/xfs_trans_dquot.c qtrx->qt_dquot = dqp; dqp 310 fs/xfs/xfs_trans_dquot.c struct xfs_dquot *dqp; dqp 336 fs/xfs/xfs_trans_dquot.c if ((dqp = qtrx->qt_dquot) == NULL) dqp 339 fs/xfs/xfs_trans_dquot.c ASSERT(XFS_DQ_IS_LOCKED(dqp)); dqp 344 fs/xfs/xfs_trans_dquot.c d = &dqp->q_core; dqp 390 fs/xfs/xfs_trans_dquot.c xfs_qm_adjust_dqlimits(tp->t_mountp, dqp); dqp 394 fs/xfs/xfs_trans_dquot.c dqp->dq_flags |= XFS_DQ_DIRTY; dqp 398 fs/xfs/xfs_trans_dquot.c xfs_trans_log_dquot(tp, dqp); dqp 412 fs/xfs/xfs_trans_dquot.c dqp->q_res_bcount -= (xfs_qcnt_t) dqp 416 fs/xfs/xfs_trans_dquot.c dqp->q_res_bcount -= (xfs_qcnt_t) dqp 429 fs/xfs/xfs_trans_dquot.c dqp->q_res_bcount += dqp 440 fs/xfs/xfs_trans_dquot.c dqp->q_res_rtbcount -= (xfs_qcnt_t) dqp 444 fs/xfs/xfs_trans_dquot.c dqp->q_res_rtbcount -= (xfs_qcnt_t) dqp 450 fs/xfs/xfs_trans_dquot.c dqp->q_res_rtbcount += dqp 461 fs/xfs/xfs_trans_dquot.c dqp->q_res_icount -= (xfs_qcnt_t) dqp 466 fs/xfs/xfs_trans_dquot.c dqp->q_res_icount += dqp 470 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_bcount >= dqp 471 fs/xfs/xfs_trans_dquot.c be64_to_cpu(dqp->q_core.d_bcount)); dqp 472 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_icount >= dqp 473 fs/xfs/xfs_trans_dquot.c be64_to_cpu(dqp->q_core.d_icount)); dqp 474 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_rtbcount >= dqp 475 fs/xfs/xfs_trans_dquot.c be64_to_cpu(dqp->q_core.d_rtbcount)); dqp 492 fs/xfs/xfs_trans_dquot.c xfs_dquot_t *dqp; dqp 508 fs/xfs/xfs_trans_dquot.c if ((dqp = qtrx->qt_dquot) == NULL) dqp 517 fs/xfs/xfs_trans_dquot.c xfs_dqlock(dqp); dqp 519 fs/xfs/xfs_trans_dquot.c dqp->q_res_bcount -= dqp 524 fs/xfs/xfs_trans_dquot.c xfs_dqlock(dqp); dqp 527 fs/xfs/xfs_trans_dquot.c dqp->q_res_icount -= dqp 533 fs/xfs/xfs_trans_dquot.c xfs_dqlock(dqp); dqp 536 fs/xfs/xfs_trans_dquot.c dqp->q_res_rtbcount -= dqp 540 fs/xfs/xfs_trans_dquot.c xfs_dqunlock(dqp); dqp 549 fs/xfs/xfs_trans_dquot.c struct xfs_dquot *dqp, dqp 554 fs/xfs/xfs_trans_dquot.c if (dqp->dq_flags & XFS_DQ_PROJ) dqp 556 fs/xfs/xfs_trans_dquot.c else if (dqp->dq_flags & XFS_DQ_USER) dqp 562 fs/xfs/xfs_trans_dquot.c be32_to_cpu(dqp->q_core.d_id)), dqp 576 fs/xfs/xfs_trans_dquot.c xfs_dquot_t *dqp, dqp 592 fs/xfs/xfs_trans_dquot.c xfs_dqlock(dqp); dqp 594 fs/xfs/xfs_trans_dquot.c defq = xfs_get_defquota(dqp, q); dqp 597 fs/xfs/xfs_trans_dquot.c hardlimit = be64_to_cpu(dqp->q_core.d_blk_hardlimit); dqp 600 fs/xfs/xfs_trans_dquot.c softlimit = be64_to_cpu(dqp->q_core.d_blk_softlimit); dqp 603 fs/xfs/xfs_trans_dquot.c timer = be32_to_cpu(dqp->q_core.d_btimer); dqp 604 fs/xfs/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_bwarns); dqp 605 fs/xfs/xfs_trans_dquot.c warnlimit = dqp->q_mount->m_quotainfo->qi_bwarnlimit; dqp 606 fs/xfs/xfs_trans_dquot.c resbcountp = &dqp->q_res_bcount; dqp 609 fs/xfs/xfs_trans_dquot.c hardlimit = be64_to_cpu(dqp->q_core.d_rtb_hardlimit); dqp 612 fs/xfs/xfs_trans_dquot.c softlimit = be64_to_cpu(dqp->q_core.d_rtb_softlimit); dqp 615 fs/xfs/xfs_trans_dquot.c timer = be32_to_cpu(dqp->q_core.d_rtbtimer); dqp 616 fs/xfs/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_rtbwarns); dqp 617 fs/xfs/xfs_trans_dquot.c warnlimit = dqp->q_mount->m_quotainfo->qi_rtbwarnlimit; dqp 618 fs/xfs/xfs_trans_dquot.c resbcountp = &dqp->q_res_rtbcount; dqp 622 fs/xfs/xfs_trans_dquot.c dqp->q_core.d_id && dqp 623 fs/xfs/xfs_trans_dquot.c ((XFS_IS_UQUOTA_ENFORCED(dqp->q_mount) && XFS_QM_ISUDQ(dqp)) || dqp 624 fs/xfs/xfs_trans_dquot.c (XFS_IS_GQUOTA_ENFORCED(dqp->q_mount) && XFS_QM_ISGDQ(dqp)) || dqp 625 fs/xfs/xfs_trans_dquot.c (XFS_IS_PQUOTA_ENFORCED(dqp->q_mount) && XFS_QM_ISPDQ(dqp)))) { dqp 634 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, QUOTA_NL_BHARDWARN); dqp 640 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, dqp 645 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, QUOTA_NL_BSOFTWARN); dqp 649 fs/xfs/xfs_trans_dquot.c total_count = be64_to_cpu(dqp->q_core.d_icount) + ninos; dqp 650 fs/xfs/xfs_trans_dquot.c timer = be32_to_cpu(dqp->q_core.d_itimer); dqp 651 fs/xfs/xfs_trans_dquot.c warns = be16_to_cpu(dqp->q_core.d_iwarns); dqp 652 fs/xfs/xfs_trans_dquot.c warnlimit = dqp->q_mount->m_quotainfo->qi_iwarnlimit; dqp 653 fs/xfs/xfs_trans_dquot.c hardlimit = be64_to_cpu(dqp->q_core.d_ino_hardlimit); dqp 656 fs/xfs/xfs_trans_dquot.c softlimit = be64_to_cpu(dqp->q_core.d_ino_softlimit); dqp 661 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, QUOTA_NL_IHARDWARN); dqp 667 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, dqp 671 fs/xfs/xfs_trans_dquot.c xfs_quota_warn(mp, dqp, QUOTA_NL_ISOFTWARN); dqp 682 fs/xfs/xfs_trans_dquot.c dqp->q_res_icount += (xfs_qcnt_t)ninos; dqp 695 fs/xfs/xfs_trans_dquot.c xfs_trans_mod_dquot(tp, dqp, dqp 699 fs/xfs/xfs_trans_dquot.c xfs_trans_mod_dquot(tp, dqp, dqp 703 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_bcount >= be64_to_cpu(dqp->q_core.d_bcount)); dqp 704 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_rtbcount >= be64_to_cpu(dqp->q_core.d_rtbcount)); dqp 705 fs/xfs/xfs_trans_dquot.c ASSERT(dqp->q_res_icount >= be64_to_cpu(dqp->q_core.d_icount)); dqp 707 fs/xfs/xfs_trans_dquot.c xfs_dqunlock(dqp); dqp 711 fs/xfs/xfs_trans_dquot.c xfs_dqunlock(dqp);