Lines Matching refs:fdq
819 struct qc_dqblk *fdq) in gfs2_adjust_quota() argument
844 if (fdq) { in gfs2_adjust_quota()
845 if (fdq->d_fieldmask & QC_SPC_SOFT) { in gfs2_adjust_quota()
846 q.qu_warn = cpu_to_be64(fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
849 if (fdq->d_fieldmask & QC_SPC_HARD) { in gfs2_adjust_quota()
850 q.qu_limit = cpu_to_be64(fdq->d_spc_hardlimit >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
853 if (fdq->d_fieldmask & QC_SPACE) { in gfs2_adjust_quota()
854 q.qu_value = cpu_to_be64(fdq->d_space >> sdp->sd_sb.sb_bsize_shift); in gfs2_adjust_quota()
1624 struct qc_dqblk *fdq) in gfs2_get_dqblk() argument
1632 memset(fdq, 0, sizeof(*fdq)); in gfs2_get_dqblk()
1649 fdq->d_spc_hardlimit = be64_to_cpu(qlvb->qb_limit) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1650 fdq->d_spc_softlimit = be64_to_cpu(qlvb->qb_warn) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1651 fdq->d_space = be64_to_cpu(qlvb->qb_value) << sdp->sd_sb.sb_bsize_shift; in gfs2_get_dqblk()
1663 struct qc_dqblk *fdq) in gfs2_set_dqblk() argument
1682 if (fdq->d_fieldmask & ~GFS2_FIELDMASK) in gfs2_set_dqblk()
1707 if ((fdq->d_fieldmask & QC_SPC_SOFT) && in gfs2_set_dqblk()
1708 ((fdq->d_spc_softlimit >> sdp->sd_sb.sb_bsize_shift) == be64_to_cpu(qd->qd_qb.qb_warn))) in gfs2_set_dqblk()
1709 fdq->d_fieldmask ^= QC_SPC_SOFT; in gfs2_set_dqblk()
1711 if ((fdq->d_fieldmask & QC_SPC_HARD) && in gfs2_set_dqblk()
1712 ((fdq->d_spc_hardlimit >> sdp->sd_sb.sb_bsize_shift) == be64_to_cpu(qd->qd_qb.qb_limit))) in gfs2_set_dqblk()
1713 fdq->d_fieldmask ^= QC_SPC_HARD; in gfs2_set_dqblk()
1715 if ((fdq->d_fieldmask & QC_SPACE) && in gfs2_set_dqblk()
1716 ((fdq->d_space >> sdp->sd_sb.sb_bsize_shift) == be64_to_cpu(qd->qd_qb.qb_value))) in gfs2_set_dqblk()
1717 fdq->d_fieldmask ^= QC_SPACE; in gfs2_set_dqblk()
1719 if (fdq->d_fieldmask == 0) in gfs2_set_dqblk()
1745 error = gfs2_adjust_quota(ip, offset, 0, qd, fdq); in gfs2_set_dqblk()