Lines Matching refs:type
57 int type = dquot->dq_type; in v1_read_dqblk() local
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, sizeof(struct v1_disk_dqblk), v… in v1_read_dqblk()
78 short type = dquot->dq_type; in v1_commit_dqblk() local
84 dqblk.dqb_btime = sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk()
85 dqblk.dqb_itime = sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk()
88 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk()
89 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, (char *)&dqblk, in v1_commit_dqblk()
118 static int v1_check_quota_file(struct super_block *sb, int type) in v1_check_quota_file() argument
120 struct inode *inode = sb_dqopt(sb)->files[type]; in v1_check_quota_file()
136 size = sb->s_op->quota_read(sb, type, (char *)&dqhead, sizeof(struct v2_disk_dqheader), 0); in v1_check_quota_file()
139 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type]) in v1_check_quota_file()
145 static int v1_read_file_info(struct super_block *sb, int type) in v1_read_file_info() argument
151 …if ((ret = sb->s_op->quota_read(sb, type, (char *)&dqblk, sizeof(struct v1_disk_dqblk), v1_dqoff(0… in v1_read_file_info()
158 dqopt->info[type].dqi_maxblimit = 0xffffffff; in v1_read_file_info()
159 dqopt->info[type].dqi_maxilimit = 0xffffffff; in v1_read_file_info()
160 dqopt->info[type].dqi_igrace = dqblk.dqb_itime ? dqblk.dqb_itime : MAX_IQ_TIME; in v1_read_file_info()
161 dqopt->info[type].dqi_bgrace = dqblk.dqb_btime ? dqblk.dqb_btime : MAX_DQ_TIME; in v1_read_file_info()
166 static int v1_write_file_info(struct super_block *sb, int type) in v1_write_file_info() argument
172 dqopt->info[type].dqi_flags &= ~DQF_INFO_DIRTY; in v1_write_file_info()
173 if ((ret = sb->s_op->quota_read(sb, type, (char *)&dqblk, in v1_write_file_info()
179 dqblk.dqb_itime = dqopt->info[type].dqi_igrace; in v1_write_file_info()
180 dqblk.dqb_btime = dqopt->info[type].dqi_bgrace; in v1_write_file_info()
181 ret = sb->s_op->quota_write(sb, type, (char *)&dqblk, in v1_write_file_info()