Lines Matching refs:dqp

279 	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()
306 xfs_dqunlock(dqp); in xfs_qm_scall_setqlim()
312 xfs_dqlock(dqp); in xfs_qm_scall_setqlim()
313 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
335 dqp->q_blk.hardlimit; in xfs_qm_scall_setqlim()
338 dqp->q_blk.softlimit; in xfs_qm_scall_setqlim()
339 res = &dqp->q_blk; in xfs_qm_scall_setqlim()
343 xfs_dquot_set_prealloc_limits(dqp); in xfs_qm_scall_setqlim()
350 dqp->q_rtb.hardlimit; in xfs_qm_scall_setqlim()
353 dqp->q_rtb.softlimit; in xfs_qm_scall_setqlim()
354 res = &dqp->q_rtb; in xfs_qm_scall_setqlim()
364 dqp->q_ino.hardlimit; in xfs_qm_scall_setqlim()
367 dqp->q_ino.softlimit; in xfs_qm_scall_setqlim()
368 res = &dqp->q_ino; in xfs_qm_scall_setqlim()
383 xfs_qm_adjust_dqtimers(dqp); in xfs_qm_scall_setqlim()
385 dqp->q_flags |= XFS_DQFLAG_DIRTY; in xfs_qm_scall_setqlim()
386 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
391 xfs_qm_dqrele(dqp); in xfs_qm_scall_setqlim()
400 const struct xfs_dquot *dqp, in xfs_qm_scall_getquota_fill_qc() argument
404 dst->d_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_blk.hardlimit); in xfs_qm_scall_getquota_fill_qc()
405 dst->d_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_blk.softlimit); in xfs_qm_scall_getquota_fill_qc()
406 dst->d_ino_hardlimit = dqp->q_ino.hardlimit; in xfs_qm_scall_getquota_fill_qc()
407 dst->d_ino_softlimit = dqp->q_ino.softlimit; in xfs_qm_scall_getquota_fill_qc()
408 dst->d_space = XFS_FSB_TO_B(mp, dqp->q_blk.reserved); in xfs_qm_scall_getquota_fill_qc()
409 dst->d_ino_count = dqp->q_ino.reserved; in xfs_qm_scall_getquota_fill_qc()
410 dst->d_spc_timer = dqp->q_blk.timer; in xfs_qm_scall_getquota_fill_qc()
411 dst->d_ino_timer = dqp->q_ino.timer; in xfs_qm_scall_getquota_fill_qc()
414 dst->d_rt_spc_hardlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.hardlimit); in xfs_qm_scall_getquota_fill_qc()
415 dst->d_rt_spc_softlimit = XFS_FSB_TO_B(mp, dqp->q_rtb.softlimit); in xfs_qm_scall_getquota_fill_qc()
416 dst->d_rt_space = XFS_FSB_TO_B(mp, dqp->q_rtb.reserved); in xfs_qm_scall_getquota_fill_qc()
417 dst->d_rt_spc_timer = dqp->q_rtb.timer; in xfs_qm_scall_getquota_fill_qc()
425 if (!xfs_dquot_is_enforced(dqp)) { in xfs_qm_scall_getquota_fill_qc()
432 if (xfs_dquot_is_enforced(dqp) && dqp->q_id != 0) { in xfs_qm_scall_getquota_fill_qc()
437 if ((dst->d_ino_count > dqp->q_ino.softlimit) && in xfs_qm_scall_getquota_fill_qc()
438 (dqp->q_ino.softlimit > 0)) { in xfs_qm_scall_getquota_fill_qc()
453 struct xfs_dquot *dqp; in xfs_qm_scall_getquota() local
467 error = xfs_qm_dqget(mp, id, type, false, &dqp); in xfs_qm_scall_getquota()
475 if (XFS_IS_DQUOT_UNINITIALIZED(dqp)) { in xfs_qm_scall_getquota()
480 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota()
483 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota()
498 struct xfs_dquot *dqp; in xfs_qm_scall_getquota_next() local
505 error = xfs_qm_dqget_next(mp, *id, type, &dqp); in xfs_qm_scall_getquota_next()
510 *id = dqp->q_id; in xfs_qm_scall_getquota_next()
512 xfs_qm_scall_getquota_fill_qc(mp, type, dqp, dst); in xfs_qm_scall_getquota_next()
514 xfs_qm_dqput(dqp); in xfs_qm_scall_getquota_next()