Lines Matching refs:type
50 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument
57 size = sb->s_op->quota_read(sb, type, (char *)&dqhead, sizeof(struct v2_disk_dqheader), 0); in v2_check_quota_file()
63 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] || in v2_check_quota_file()
64 le32_to_cpu(dqhead.dqh_version) != quota_versions[type]) in v2_check_quota_file()
70 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument
73 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_read_file_info()
77 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info()
98 qinfo->dqi_type = type; in v2_read_file_info()
111 static int v2_write_file_info(struct super_block *sb, int type) in v2_write_file_info() argument
114 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_write_file_info()
127 size = sb->s_op->quota_write(sb, type, (char *)&dinfo, in v2_write_file_info()
203 static int v2_free_file_info(struct super_block *sb, int type) in v2_free_file_info() argument
205 kfree(sb_dqinfo(sb, type)->dqi_priv); in v2_free_file_info()