Lines Matching refs:type
58 int type = dquot->dq_id.type;
62 if (!dqopt->files[type])
67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk,
84 short type = dquot->dq_id.type;
89 if (((type == USRQUOTA) && uid_eq(dquot->dq_id.uid, GLOBAL_ROOT_UID)) ||
90 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) {
92 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace;
94 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace;
97 if (sb_dqopt(dquot->dq_sb)->files[type])
98 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type,
127 static int v1_check_quota_file(struct super_block *sb, int type)
129 struct inode *inode = sb_dqopt(sb)->files[type];
147 size = sb->s_op->quota_read(sb, type, (char *)&dqhead,
151 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type])
159 static int v1_read_file_info(struct super_block *sb, int type)
168 ret = sb->s_op->quota_read(sb, type, (char *)&dqblk,
177 dqopt->info[type].dqi_max_spc_limit = 0xffffffffULL << QUOTABLOCK_BITS;
178 dqopt->info[type].dqi_max_ino_limit = 0xffffffff;
179 dqopt->info[type].dqi_igrace =
181 dqopt->info[type].dqi_bgrace =
189 static int v1_write_file_info(struct super_block *sb, int type)
198 ret = sb->s_op->quota_read(sb, type, (char *)&dqblk,
206 dqopt->info[type].dqi_flags &= ~DQF_INFO_DIRTY;
207 dqblk.dqb_itime = dqopt->info[type].dqi_igrace;
208 dqblk.dqb_btime = dqopt->info[type].dqi_bgrace;
210 ret = sb->s_op->quota_write(sb, type, (char *)&dqblk,