Lines Matching refs:fdq
621 * @fdq: The updated limits to record
631 struct fs_disk_quota *fdq)
659 if (fdq) {
660 if (fdq->d_fieldmask & FS_DQ_BSOFT) {
661 qp->qu_warn = cpu_to_be64(fdq->d_blk_softlimit);
664 if (fdq->d_fieldmask & FS_DQ_BHARD) {
665 qp->qu_limit = cpu_to_be64(fdq->d_blk_hardlimit);
1472 struct fs_disk_quota *fdq)
1480 memset(fdq, 0, sizeof(struct fs_disk_quota));
1500 fdq->d_version = FS_DQUOT_VERSION;
1501 fdq->d_flags = (type == QUOTA_USER) ? FS_USER_QUOTA : FS_GROUP_QUOTA;
1502 fdq->d_id = id;
1503 fdq->d_blk_hardlimit = be64_to_cpu(qlvb->qb_limit);
1504 fdq->d_blk_softlimit = be64_to_cpu(qlvb->qb_warn);
1505 fdq->d_bcount = be64_to_cpu(qlvb->qb_value);
1517 struct fs_disk_quota *fdq)
1536 if (fdq->d_flags != FS_USER_QUOTA)
1541 if (fdq->d_flags != FS_GROUP_QUOTA)
1548 if (fdq->d_fieldmask & ~GFS2_FIELDMASK)
1550 if (fdq->d_id != id)
1571 if ((fdq->d_fieldmask & FS_DQ_BSOFT) &&
1572 (fdq->d_blk_softlimit == be64_to_cpu(qd->qd_qb.qb_warn)))
1573 fdq->d_fieldmask ^= FS_DQ_BSOFT;
1574 if ((fdq->d_fieldmask & FS_DQ_BHARD) &&
1575 (fdq->d_blk_hardlimit == be64_to_cpu(qd->qd_qb.qb_limit)))
1576 fdq->d_fieldmask ^= FS_DQ_BHARD;
1577 if (fdq->d_fieldmask == 0)
1599 error = gfs2_adjust_quota(ip, offset, 0, qd, fdq);