Lines Matching refs:qtype

70 int quota_file_exists(ext2_filsys fs, enum quota_type qtype)
76 if (qtype >= MAXQUOTAS)
79 quota_get_qf_name(qtype, QFMT_VFS_V1, qf_name);
92 void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, enum quota_type qtype)
96 inump = quota_sb_inump(fs->super, qtype);
99 qtype);
104 errcode_t quota_remove_inode(ext2_filsys fs, enum quota_type qtype)
115 qf_ino = *quota_sb_inump(fs->super, qtype);
133 quota_set_sb_inum(fs, 0, qtype);
164 enum quota_type qtype;
187 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
188 if (((1 << qtype) & qtype_bits) == 0)
191 dict = qctx->quota_dict[qtype];
195 retval = quota_file_create(h, fs, qtype, fmt);
213 quota_set_sb_inum(fs, h->qh_qf.ino, qtype);
249 static inline qid_t get_qid(struct ext2_inode_large *inode, enum quota_type qtype)
253 switch (qtype) {
288 enum quota_type qtype;
297 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
298 ctx->quota_file[qtype] = NULL;
299 if (((1 << qtype) & qtype_bits) == 0)
307 ctx->quota_dict[qtype] = dict;
321 enum quota_type qtype;
328 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
329 dict = ctx->quota_dict[qtype];
330 ctx->quota_dict[qtype] = 0;
335 if (ctx->quota_file[qtype]) {
336 err = quota_file_close(ctx, ctx->quota_file[qtype]);
340 ext2fs_free_mem(&ctx->quota_file[qtype]);
378 enum quota_type qtype;
386 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
387 dict = qctx->quota_dict[qtype];
389 dq = get_dq(dict, get_qid(inode, qtype));
405 enum quota_type qtype;
413 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
414 dict = qctx->quota_dict[qtype];
416 dq = get_dq(dict, get_qid(inode, qtype));
430 enum quota_type qtype;
438 for (qtype = 0; qtype < MAXQUOTAS; qtype++) {
439 dict = qctx->quota_dict[qtype];
441 dq = get_dq(dict, get_qid(inode, qtype));
582 enum quota_type qtype)
596 err = quota_file_open(qctx, qh, qf_ino, qtype, -1, 0);
621 errcode_t quota_compare_and_update(quota_ctx_t qctx, enum quota_type qtype,
628 dict_t *dict = qctx->quota_dict[qtype];
634 err = quota_file_open(qctx, &qh, 0, qtype, -1, 0);
640 scan_data.quota_dict = qctx->quota_dict[qtype];