Home
last modified time | relevance | path

Searched refs:qctx (Results 1 – 12 of 12) sorted by relevance

/external/e2fsprogs/lib/support/
Dmkquota.c161 errcode_t quota_write_inode(quota_ctx_t qctx, unsigned int qtype_bits) in quota_write_inode() argument
170 if (!qctx) in quota_write_inode()
173 fs = qctx->fs; in quota_write_inode()
191 dict = qctx->quota_dict[qtype]; in quota_write_inode()
202 retval = quota_file_close(qctx, h); in quota_write_inode()
282 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, in quota_init_context() argument
313 *qctx = ctx; in quota_init_context()
317 void quota_release_context(quota_ctx_t *qctx) in quota_release_context() argument
324 if (!qctx) in quota_release_context()
327 ctx = *qctx; in quota_release_context()
[all …]
Dquotaio.h189 errcode_t quota_file_open(quota_ctx_t qctx, struct quota_handle *h,
199 errcode_t quota_file_close(quota_ctx_t qctx, struct quota_handle *h);
218 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs,
220 void quota_data_inodes(quota_ctx_t qctx, struct ext2_inode_large *inode,
222 void quota_data_add(quota_ctx_t qctx, struct ext2_inode_large *inode,
224 void quota_data_sub(quota_ctx_t qctx, struct ext2_inode_large *inode,
226 errcode_t quota_write_inode(quota_ctx_t qctx, enum quota_type qtype);
227 errcode_t quota_update_limits(quota_ctx_t qctx, ext2_ino_t qf_ino,
229 errcode_t quota_compute_usage(quota_ctx_t qctx);
230 void quota_release_context(quota_ctx_t *qctx);
[all …]
Dquotaio.c213 errcode_t quota_file_open(quota_ctx_t qctx, struct quota_handle *h, in quota_file_open() argument
217 ext2_filsys fs = qctx->fs; in quota_file_open()
243 if (qctx->quota_file[qtype]) { in quota_file_open()
244 h = qctx->quota_file[qtype]; in quota_file_open()
248 (void) quota_file_close(qctx, h); in quota_file_open()
281 qctx->quota_file[qtype] = h; in quota_file_open()
401 errcode_t quota_file_close(quota_ctx_t qctx, struct quota_handle *h) in quota_file_close() argument
422 if (qctx->quota_file[h->qh_type] == h) in quota_file_close()
423 ext2fs_free_mem(&qctx->quota_file[h->qh_type]); in quota_file_close()
/external/e2fsprogs/e2fsck/
Dpass3.c581 quota_data_add(ctx->qctx, &inode, ino, fs->blocksize); in e2fsck_get_lost_and_found()
582 quota_data_inodes(ctx->qctx, &inode, ino, +1); in e2fsck_get_lost_and_found()
902 quota_data_add(ctx->qctx, &inode, dir, es.newblocks * fs->blocksize); in e2fsck_expand_directory()
Dpass4.c65 quota_data_inodes(ctx->qctx, inode, i, -1); in disconnect_inode()
Dunix.c1795 pctx.errcode = quota_init_context(&ctx->qctx, ctx->fs, in main()
1841 } else if (ctx->qctx && !ctx->invalid_bitmaps) { in main()
1849 retval = quota_compare_and_update(ctx->qctx, qtype, in main()
1853 pctx.errcode = quota_write_inode(ctx->qctx, in main()
1860 quota_release_context(&ctx->qctx); in main()
Dextents.c253 quota_data_sub(ctx->qctx, &inode, ino, in rebuild_extent_tree()
311 quota_data_add(ctx->qctx, &inode, ino, delta); in rebuild_extent_tree()
Dpass1b.c682 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
684 quota_data_inodes(ctx->qctx, &dp->inode, ino, -1); in delete_file()
719 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
De2fsck.h328 quota_ctx_t qctx; member
Dpass1.c3173 quota_data_add(ctx->qctx, (struct ext2_inode_large *) inode, in check_blocks()
3175 quota_data_inodes(ctx->qctx, (struct ext2_inode_large *) inode, in check_blocks()
/external/e2fsprogs/misc/
Dtune2fs.c1483 quota_ctx_t qctx; in handle_quota_options() local
1495 retval = quota_init_context(&qctx, fs, QUOTA_ALL_BIT); in handle_quota_options()
1508 quota_compute_usage(qctx); in handle_quota_options()
1514 retval = quota_update_limits(qctx, qf_ino, in handle_quota_options()
1523 retval = quota_write_inode(qctx, 1 << qtype); in handle_quota_options()
1541 quota_release_context(&qctx); in handle_quota_options()
Dmke2fs.c2707 quota_ctx_t qctx; in create_quota_inodes() local
2710 retval = quota_init_context(&qctx, fs, QUOTA_ALL_BIT); in create_quota_inodes()
2716 quota_compute_usage(qctx); in create_quota_inodes()
2717 retval = quota_write_inode(qctx, quotatype_bits); in create_quota_inodes()
2723 quota_release_context(&qctx); in create_quota_inodes()