Home | History | Annotate | Download | only in quota

Lines Matching full:qctx

121 errcode_t quota_write_inode(quota_ctx_t qctx, int qtype)
129 if (!qctx)
132 fs = qctx->fs;
145 dict = qctx->quota_dict[i];
213 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, int qtype)
241 *qctx = ctx;
245 void quota_release_context(quota_ctx_t *qctx)
251 if (!qctx)
254 ctx = *qctx;
263 *qctx = NULL;
291 void quota_data_add(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino,
298 if (!qctx)
305 dict = qctx->quota_dict[i];
317 void quota_data_sub(quota_ctx_t qctx, struct ext2_inode *inode, ext2_ino_t ino,
324 if (!qctx)
331 dict = qctx->quota_dict[i];
342 void quota_data_inodes(quota_ctx_t qctx, struct ext2_inode *inode,
349 if (!qctx)
356 dict = qctx->quota_dict[i];
364 errcode_t quota_compute_usage(quota_ctx_t qctx)
373 if (!qctx)
376 fs = qctx->fs;
396 quota_data_add(qctx, &inode, ino, space);
397 quota_data_inodes(qctx, &inode, ino, +1);
454 quota_ctx_t qctx, int update_limits)
458 scan_data.quota_dict = qctx->quota_dict[qh->qh_type];
470 quota_ctx_t qctx)
474 err = ext2fs_read_bitmaps(qctx->fs);
477 write_dquots(qctx->quota_dict[qh->qh_type], qh);
478 ext2fs_mark_bb_dirty(qctx->fs);
479 qctx->fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
480 ext2fs_write_bitmaps(qctx->fs);
488 errcode_t quota_update_limits(quota_ctx_t qctx, ext2_ino_t qf_ino, int type)
493 if (!qctx)
502 err = quota_file_open(qh, qctx->fs, qf_ino, type, -1, 0);
508 quota_read_all_dquots(qh, qctx, 1);
523 * Compares the measured quota in qctx->quota_dict with that in the quota inode
524 * on disk and updates the limits in qctx->quota_dict. 'usage_inconsistent' is
527 errcode_t quota_compare_and_update(quota_ctx_t qctx, int qtype,
530 ext2_filsys fs = qctx->fs;
536 if (!qctx->quota_dict[qtype])
547 scan_data.quota_dict = qctx->quota_dict[qtype];