Lines Matching refs:qctx
70 quota_ctx_t qctx = fsck->qctx;
75 if ((!qctx) || (!sb->qf_ino[qtype]))
84 dict = qctx->quota_dict[qtype];
178 fsck->qctx = ctx;
182 void quota_release_context(quota_ctx_t *qctx)
188 if (!qctx)
191 ctx = *qctx;
201 *qctx = NULL;
228 void quota_data_add(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space)
234 if (!qctx)
238 dict = qctx->quota_dict[qtype];
250 void quota_data_sub(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space)
256 if (!qctx)
260 dict = qctx->quota_dict[qtype];
271 void quota_data_inodes(quota_ctx_t qctx, struct f2fs_inode *inode, int adjust)
276 if (!qctx)
280 dict = qctx->quota_dict[qtype];
291 void quota_add_inode_usage(quota_ctx_t qctx, f2fs_ino_t ino,
294 if (qctx) {
297 if (dict_lookup(&qctx->linked_inode_dict,
301 dict_alloc_insert(&qctx->linked_inode_dict,
306 quota_data_add(qctx, inode, space);
307 quota_data_inodes(qctx, inode, +1);
358 * Compares the measured quota in qctx->quota_dict with that in the quota inode
359 * on disk and updates the limits in qctx->quota_dict. 'usage_inconsistent' is
367 quota_ctx_t qctx = fsck->qctx;
372 dict_t *dict = qctx->quota_dict[qtype];
385 scan_data.quota_dict = qctx->quota_dict[qtype];