Lines Matching refs:fdq

631 			     struct fs_disk_quota *fdq)  in gfs2_adjust_quota()  argument
660 if (fdq) { in gfs2_adjust_quota()
661 if (fdq->d_fieldmask & FS_DQ_BSOFT) { in gfs2_adjust_quota()
662 qp->qu_warn = cpu_to_be64(fdq->d_blk_softlimit >> sdp->sd_fsb2bb_shift); in gfs2_adjust_quota()
665 if (fdq->d_fieldmask & FS_DQ_BHARD) { in gfs2_adjust_quota()
666 qp->qu_limit = cpu_to_be64(fdq->d_blk_hardlimit >> sdp->sd_fsb2bb_shift); in gfs2_adjust_quota()
669 if (fdq->d_fieldmask & FS_DQ_BCOUNT) { in gfs2_adjust_quota()
670 qp->qu_value = cpu_to_be64(fdq->d_bcount >> sdp->sd_fsb2bb_shift); in gfs2_adjust_quota()
1480 struct fs_disk_quota *fdq) in gfs2_get_dqblk() argument
1488 memset(fdq, 0, sizeof(struct fs_disk_quota)); in gfs2_get_dqblk()
1508 fdq->d_version = FS_DQUOT_VERSION; in gfs2_get_dqblk()
1509 fdq->d_flags = (type == QUOTA_USER) ? FS_USER_QUOTA : FS_GROUP_QUOTA; in gfs2_get_dqblk()
1510 fdq->d_id = id; in gfs2_get_dqblk()
1511 fdq->d_blk_hardlimit = be64_to_cpu(qlvb->qb_limit) << sdp->sd_fsb2bb_shift; in gfs2_get_dqblk()
1512 fdq->d_blk_softlimit = be64_to_cpu(qlvb->qb_warn) << sdp->sd_fsb2bb_shift; in gfs2_get_dqblk()
1513 fdq->d_bcount = be64_to_cpu(qlvb->qb_value) << sdp->sd_fsb2bb_shift; in gfs2_get_dqblk()
1525 struct fs_disk_quota *fdq) in gfs2_set_dqblk() argument
1544 if (fdq->d_flags != FS_USER_QUOTA) in gfs2_set_dqblk()
1549 if (fdq->d_flags != FS_GROUP_QUOTA) in gfs2_set_dqblk()
1556 if (fdq->d_fieldmask & ~GFS2_FIELDMASK) in gfs2_set_dqblk()
1558 if (fdq->d_id != id) in gfs2_set_dqblk()
1579 if ((fdq->d_fieldmask & FS_DQ_BSOFT) && in gfs2_set_dqblk()
1580 ((fdq->d_blk_softlimit >> sdp->sd_fsb2bb_shift) == be64_to_cpu(qd->qd_qb.qb_warn))) in gfs2_set_dqblk()
1581 fdq->d_fieldmask ^= FS_DQ_BSOFT; in gfs2_set_dqblk()
1583 if ((fdq->d_fieldmask & FS_DQ_BHARD) && in gfs2_set_dqblk()
1584 ((fdq->d_blk_hardlimit >> sdp->sd_fsb2bb_shift) == be64_to_cpu(qd->qd_qb.qb_limit))) in gfs2_set_dqblk()
1585 fdq->d_fieldmask ^= FS_DQ_BHARD; in gfs2_set_dqblk()
1587 if ((fdq->d_fieldmask & FS_DQ_BCOUNT) && in gfs2_set_dqblk()
1588 ((fdq->d_bcount >> sdp->sd_fsb2bb_shift) == be64_to_cpu(qd->qd_qb.qb_value))) in gfs2_set_dqblk()
1589 fdq->d_fieldmask ^= FS_DQ_BCOUNT; in gfs2_set_dqblk()
1591 if (fdq->d_fieldmask == 0) in gfs2_set_dqblk()
1618 error = gfs2_adjust_quota(ip, offset, 0, qd, fdq); in gfs2_set_dqblk()