Lines Matching refs:ddqp
527 struct xfs_disk_dquot *ddqp) in xfs_dquot_check_type() argument
532 ddqp_type = ddqp->d_type & XFS_DQTYPE_REC_MASK; in xfs_dquot_check_type()
535 if (be32_to_cpu(ddqp->d_id) != dqp->q_id) in xfs_dquot_check_type()
566 struct xfs_disk_dquot *ddqp = &dqb->dd_diskdq; in xfs_dquot_from_disk() local
572 if (!xfs_dquot_check_type(dqp, ddqp)) { in xfs_dquot_from_disk()
581 dqp->q_type = ddqp->d_type; in xfs_dquot_from_disk()
582 dqp->q_blk.hardlimit = be64_to_cpu(ddqp->d_blk_hardlimit); in xfs_dquot_from_disk()
583 dqp->q_blk.softlimit = be64_to_cpu(ddqp->d_blk_softlimit); in xfs_dquot_from_disk()
584 dqp->q_ino.hardlimit = be64_to_cpu(ddqp->d_ino_hardlimit); in xfs_dquot_from_disk()
585 dqp->q_ino.softlimit = be64_to_cpu(ddqp->d_ino_softlimit); in xfs_dquot_from_disk()
586 dqp->q_rtb.hardlimit = be64_to_cpu(ddqp->d_rtb_hardlimit); in xfs_dquot_from_disk()
587 dqp->q_rtb.softlimit = be64_to_cpu(ddqp->d_rtb_softlimit); in xfs_dquot_from_disk()
589 dqp->q_blk.count = be64_to_cpu(ddqp->d_bcount); in xfs_dquot_from_disk()
590 dqp->q_ino.count = be64_to_cpu(ddqp->d_icount); in xfs_dquot_from_disk()
591 dqp->q_rtb.count = be64_to_cpu(ddqp->d_rtbcount); in xfs_dquot_from_disk()
593 dqp->q_blk.timer = xfs_dquot_from_disk_ts(ddqp, ddqp->d_btimer); in xfs_dquot_from_disk()
594 dqp->q_ino.timer = xfs_dquot_from_disk_ts(ddqp, ddqp->d_itimer); in xfs_dquot_from_disk()
595 dqp->q_rtb.timer = xfs_dquot_from_disk_ts(ddqp, ddqp->d_rtbtimer); in xfs_dquot_from_disk()
613 struct xfs_disk_dquot *ddqp, in xfs_dquot_to_disk() argument
616 ddqp->d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_dquot_to_disk()
617 ddqp->d_version = XFS_DQUOT_VERSION; in xfs_dquot_to_disk()
618 ddqp->d_type = dqp->q_type; in xfs_dquot_to_disk()
619 ddqp->d_id = cpu_to_be32(dqp->q_id); in xfs_dquot_to_disk()
620 ddqp->d_pad0 = 0; in xfs_dquot_to_disk()
621 ddqp->d_pad = 0; in xfs_dquot_to_disk()
623 ddqp->d_blk_hardlimit = cpu_to_be64(dqp->q_blk.hardlimit); in xfs_dquot_to_disk()
624 ddqp->d_blk_softlimit = cpu_to_be64(dqp->q_blk.softlimit); in xfs_dquot_to_disk()
625 ddqp->d_ino_hardlimit = cpu_to_be64(dqp->q_ino.hardlimit); in xfs_dquot_to_disk()
626 ddqp->d_ino_softlimit = cpu_to_be64(dqp->q_ino.softlimit); in xfs_dquot_to_disk()
627 ddqp->d_rtb_hardlimit = cpu_to_be64(dqp->q_rtb.hardlimit); in xfs_dquot_to_disk()
628 ddqp->d_rtb_softlimit = cpu_to_be64(dqp->q_rtb.softlimit); in xfs_dquot_to_disk()
630 ddqp->d_bcount = cpu_to_be64(dqp->q_blk.count); in xfs_dquot_to_disk()
631 ddqp->d_icount = cpu_to_be64(dqp->q_ino.count); in xfs_dquot_to_disk()
632 ddqp->d_rtbcount = cpu_to_be64(dqp->q_rtb.count); in xfs_dquot_to_disk()
634 ddqp->d_bwarns = 0; in xfs_dquot_to_disk()
635 ddqp->d_iwarns = 0; in xfs_dquot_to_disk()
636 ddqp->d_rtbwarns = 0; in xfs_dquot_to_disk()
638 ddqp->d_btimer = xfs_dquot_to_disk_ts(dqp, dqp->q_blk.timer); in xfs_dquot_to_disk()
639 ddqp->d_itimer = xfs_dquot_to_disk_ts(dqp, dqp->q_ino.timer); in xfs_dquot_to_disk()
640 ddqp->d_rtbtimer = xfs_dquot_to_disk_ts(dqp, dqp->q_rtb.timer); in xfs_dquot_to_disk()