Lines Matching defs:ictx
39 ntfs_index_context *ictx;
41 ictx = kmem_cache_alloc(ntfs_index_ctx_cache, GFP_NOFS);
42 if (ictx)
43 *ictx = (ntfs_index_context){ .idx_ni = idx_ni };
44 return ictx;
49 * @ictx: index context to free
51 * Release the index context @ictx, releasing all associated resources.
55 void ntfs_index_ctx_put(ntfs_index_context *ictx)
57 if (ictx->entry) {
58 if (ictx->is_in_root) {
59 if (ictx->actx)
60 ntfs_attr_put_search_ctx(ictx->actx);
61 if (ictx->base_ni)
62 unmap_mft_record(ictx->base_ni);
64 struct page *page = ictx->page;
72 kmem_cache_free(ntfs_index_ctx_cache, ictx);
80 * @ictx: [IN/OUT] context describing the index and the returned entry
82 * Before calling ntfs_index_lookup(), @ictx must have been obtained from a
85 * Look for the @key in the index specified by the index lookup context @ictx.
88 * If the @key is found in the index, 0 is returned and @ictx is setup to
89 * describe the index entry containing the matching @key. @ictx->entry is the
90 * index entry and @ictx->data and @ictx->data_len are the index entry data and
93 * If the @key is not found in the index, -ENOENT is returned and @ictx is
98 * If an error occurs return the negative error code and @ictx is left
118 ntfs_index_context *ictx)
121 ntfs_inode *idx_ni = ictx->idx_ni;
203 /* If the keys match perfectly, we setup @ictx and return 0. */
207 ictx->is_in_root = true;
208 ictx->ir = ir;
209 ictx->actx = actx;
210 ictx->base_ni = base_ni;
211 ictx->ia = NULL;
212 ictx->page = NULL;
214 ictx->entry = ie;
215 ictx->data = (u8*)ie +
217 ictx->data_len = le16_to_cpu(ie->data.vi.data_length);
244 * presence of a child node and if not present setup @ictx and return
373 /* If the keys match perfectly, we setup @ictx and return 0. */
377 ictx->is_in_root = false;
378 ictx->actx = NULL;
379 ictx->base_ni = NULL;
380 ictx->ia = ia;
381 ictx->page = page;