Lines Matching refs:dquot
55 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument
57 int type = dquot->dq_type; in v1_read_dqblk()
60 if (!sb_dqopt(dquot->dq_sb)->files[type]) in v1_read_dqblk()
65 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk()
66 sizeof(struct v1_disk_dqblk), v1_dqoff(dquot->dq_id)); in v1_read_dqblk()
68 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk()
69 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk()
70 dquot->dq_dqb.dqb_bsoftlimit == 0 && in v1_read_dqblk()
71 dquot->dq_dqb.dqb_ihardlimit == 0 && in v1_read_dqblk()
72 dquot->dq_dqb.dqb_isoftlimit == 0) in v1_read_dqblk()
73 set_bit(DQ_FAKE_B, &dquot->dq_flags); in v1_read_dqblk()
79 static int v1_commit_dqblk(struct dquot *dquot) in v1_commit_dqblk() argument
81 short type = dquot->dq_type; in v1_commit_dqblk()
85 v1_mem2disk_dqblk(&dqblk, &dquot->dq_dqb); in v1_commit_dqblk()
86 if (dquot->dq_id == 0) { in v1_commit_dqblk()
88 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk()
90 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk()
93 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk()
94 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, in v1_commit_dqblk()
96 v1_dqoff(dquot->dq_id)); in v1_commit_dqblk()
98 quota_error(dquot->dq_sb, "dquota write failed"); in v1_commit_dqblk()