Lines Matching refs:ictx
53 * @ictx: ntfs index context describing the index entry
55 * Mark the index entry described by the index entry context @ictx dirty.
65 void ntfs_index_entry_mark_dirty(ntfs_index_context *ictx)
67 if (ictx->is_in_root)
68 ntfs_inode_mark_dirty(ictx->actx->ntfs_ino);
70 ictx->ib_dirty = TRUE;
2038 ntfs_index_context *ictx)
2046 if (ictx->is_in_root) {
2050 ictx->ir = (INDEX_ROOT*)NULL;
2051 ictx->ib = (INDEX_BLOCK*)ntfs_malloc(ictx->block_size);
2052 ictx->pindex = 1;
2053 ictx->is_in_root = FALSE;
2058 ictx->pindex++;
2060 ictx->parent_pos[ictx->pindex] = 0;
2061 ictx->parent_vcn[ictx->pindex] = vcn;
2062 if (!ntfs_ib_read(ictx,vcn,ictx->ib)) {
2063 ictx->entry = ntfs_ie_get_first(&ictx->ib->index);
2064 entry = ictx->entry;
2078 ntfs_index_context *ictx)
2084 if (ictx->pindex > 0) {
2086 ictx->pindex--;
2087 if (!ictx->pindex) {
2091 free(ictx->ib);
2092 ictx->ib = (INDEX_BLOCK*)NULL;
2093 ictx->is_in_root = TRUE;
2095 if (ictx->actx)
2096 free(ictx->actx);
2097 ictx->ir = ntfs_ir_lookup(ictx->ni,
2098 ictx->name, ictx->name_len,
2099 &ictx->actx);
2100 if (ictx->ir)
2102 &ictx->ir->index,
2103 ictx->parent_pos[ictx->pindex]);
2108 vcn = ictx->parent_vcn[ictx->pindex];
2109 if (!ntfs_ib_read(ictx,vcn,ictx->ib)) {
2111 &ictx->ib->index,
2112 ictx->parent_pos[ictx->pindex]);
2116 ictx->entry = entry;
2117 } while (entry && (ictx->pindex > 0)
2151 INDEX_ENTRY *ntfs_index_next(INDEX_ENTRY *ie, ntfs_index_context *ictx)
2163 next = ntfs_index_walk_up(ie, ictx);
2171 ++ictx->parent_pos[ictx->pindex];
2177 next = ntfs_index_walk_down(next,ictx);
2183 next = ntfs_index_walk_up(next, ictx);