Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/support/
Dmkquota.c163 errcode_t quota_write_inode(quota_ctx_t qctx, unsigned int qtype_bits) in quota_write_inode() argument
172 if (!qctx) in quota_write_inode()
175 fs = qctx->fs; in quota_write_inode()
193 dict = qctx->quota_dict[qtype]; in quota_write_inode()
205 retval = quota_file_close(qctx, h); in quota_write_inode()
252 static inline int project_quota_valid(quota_ctx_t qctx) in project_quota_valid() argument
254 return (EXT2_INODE_SIZE(qctx->fs->super) > EXT2_GOOD_OLD_INODE_SIZE); in project_quota_valid()
291 errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs, in quota_init_context() argument
327 *qctx = ctx; in quota_init_context()
331 void quota_release_context(quota_ctx_t *qctx) in quota_release_context() argument
[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()
250 (void) quota_file_close(qctx, h); in quota_file_open()
286 qctx->quota_file[qtype] = h; in quota_file_open()
406 errcode_t quota_file_close(quota_ctx_t qctx, struct quota_handle *h) in quota_file_close() argument
427 if (qctx->quota_file[h->qh_type] == h) in quota_file_close()
428 ext2fs_free_mem(&qctx->quota_file[h->qh_type]); in quota_file_close()
/external/f2fs-tools/fsck/
Dmkquota.c66 quota_ctx_t qctx = fsck->qctx; in quota_write_inode() local
71 if ((!qctx) || (!sb->qf_ino[qtype])) in quota_write_inode()
80 dict = qctx->quota_dict[qtype]; in quota_write_inode()
174 fsck->qctx = ctx; in quota_init_context()
178 void quota_release_context(quota_ctx_t *qctx) in quota_release_context() argument
184 if (!qctx) in quota_release_context()
187 ctx = *qctx; in quota_release_context()
197 *qctx = NULL; in quota_release_context()
224 void quota_data_add(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space) in quota_data_add() argument
230 if (!qctx) in quota_data_add()
[all …]
Dquotaio.c102 quota_ctx_t qctx = fsck->qctx; in quota_file_open() local
113 if (qctx->quota_file[qtype]) { in quota_file_open()
114 h = qctx->quota_file[qtype]; in quota_file_open()
149 qctx->quota_file[qtype] = h; in quota_file_open()
192 quota_ctx_t qctx = fsck->qctx; in quota_file_close() local
204 if (qctx->quota_file[h->qh_type] == h) in quota_file_close()
205 quota_free_mem(&qctx->quota_file[h->qh_type]); in quota_file_close()
Dquotaio.h211 void quota_data_inodes(quota_ctx_t qctx, struct f2fs_inode *inode, int adjust);
212 void quota_data_add(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space);
213 void quota_data_sub(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space);
215 void quota_add_inode_usage(quota_ctx_t qctx, f2fs_ino_t ino,
217 void quota_release_context(quota_ctx_t *qctx);
Dfsck.h103 struct quota_ctx *qctx; member
Dfsck.c535 quota_add_inode_usage(fsck->qctx, nid, &node_blk->i); in fsck_chk_node_blk()
1768 if (!fsck->qctx) in fsck_chk_quota_files()
2499 quota_add_inode_usage(fsck->qctx, nid, &node->i); in fsck_reconnect_file()
2732 if (fsck->qctx) in fsck_free()
2733 quota_release_context(&fsck->qctx); in fsck_free()
/external/e2fsprogs/e2fsck/
Dsuper.c176 if (ctx->qctx) in release_inode_block()
177 quota_data_sub(ctx->qctx, pb->inode, 0, ctx->fs->blocksize); in release_inode_block()
254 if (ctx->qctx) in release_inode_blocks()
255 quota_data_sub(ctx->qctx, inode, 0, in release_inode_blocks()
275 retval = quota_init_context(&ctx->qctx, ctx->fs, 0); in e2fsck_read_all_quotas()
284 retval = quota_update_limits(ctx->qctx, qf_ino, qtype); in e2fsck_read_all_quotas()
289 quota_release_context(&ctx->qctx); in e2fsck_read_all_quotas()
305 pctx.errcode = quota_write_inode(ctx->qctx, 1 << qtype); in e2fsck_write_all_quotas()
312 quota_release_context(&ctx->qctx); in e2fsck_write_all_quotas()
351 if (ctx->qctx) in release_orphan_inodes()
[all …]
Dpass3.c581 quota_data_add(ctx->qctx, &inode, ino, EXT2_CLUSTER_SIZE(fs->super)); 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, in e2fsck_expand_directory()
Dextents.c254 quota_data_sub(ctx->qctx, &inode, ino, in rebuild_extent_tree()
312 quota_data_add(ctx->qctx, &inode, ino, delta); in rebuild_extent_tree()
Dunix.c1853 pctx.errcode = quota_init_context(&ctx->qctx, ctx->fs, 0); in main()
1898 } else if (ctx->qctx && !ctx->invalid_bitmaps) { in main()
1906 retval = quota_compare_and_update(ctx->qctx, qtype, in main()
1910 pctx.errcode = quota_write_inode(ctx->qctx, in main()
1917 quota_release_context(&ctx->qctx); in main()
Dpass1b.c709 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
711 quota_data_inodes(ctx->qctx, &dp->inode, ino, -1); in delete_file()
746 quota_data_sub(ctx->qctx, &dp->inode, ino, in delete_file()
Dpass4.c67 quota_data_inodes(ctx->qctx, inode, i, -1); in disconnect_inode()
De2fsck.h343 quota_ctx_t qctx; member
Dpass1.c3400 quota_data_add(ctx->qctx, (struct ext2_inode_large *) inode, in check_blocks()
3403 quota_data_inodes(ctx->qctx, (struct ext2_inode_large *) inode, in check_blocks()
/external/e2fsprogs/misc/
Dtune2fs.c1612 quota_ctx_t qctx; in handle_quota_options() local
1637 retval = quota_init_context(&qctx, fs, qtype_bits); in handle_quota_options()
1645 quota_compute_usage(qctx); in handle_quota_options()
1651 retval = quota_update_limits(qctx, qf_ino, in handle_quota_options()
1660 retval = quota_write_inode(qctx, 1 << qtype); in handle_quota_options()
1692 quota_release_context(&qctx); in handle_quota_options()
Dmke2fs.c2774 quota_ctx_t qctx; in create_quota_inodes() local
2777 retval = quota_init_context(&qctx, fs, quotatype_bits); in create_quota_inodes()
2783 quota_compute_usage(qctx); in create_quota_inodes()
2784 retval = quota_write_inode(qctx, quotatype_bits); in create_quota_inodes()
2790 quota_release_context(&qctx); in create_quota_inodes()
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc2007 auto qctx = shape_refiner->GetContext(qnode); in UpdateEnqueue() local
2008 if (!qctx) { in UpdateEnqueue()
2011 auto* queue_handle_data = qctx->output_handle_shapes_and_types(0); in UpdateEnqueue()
2025 qctx->set_output_handle_shapes_and_types(0, shapes_and_types); in UpdateEnqueue()
2032 qctx->set_output_handle_shapes_and_types(0, shapes_and_types); in UpdateEnqueue()