Lines Matching refs:old
27 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
29 static errcode_t ima_get(ext2_irel irel, ext2_ino_t old,
31 static errcode_t ima_get_by_orig(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
34 static errcode_t ima_next(ext2_irel irel, ext2_ino_t *old,
40 static errcode_t ima_move(ext2_irel irel, ext2_ino_t old, ext2_ino_t new);
41 static errcode_t ima_delete(ext2_irel irel, ext2_ino_t old);
140 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
149 if (old > ma->max_inode)
156 if (ma->entries[(unsigned) old].new == 0)
157 ent->orig = old;
159 ent->orig = ma->entries[(unsigned) old].orig;
164 ref_ent = ma->ref_entries + (unsigned) old;
166 ma->entries[(unsigned) old].max_refs) {
169 ma->entries[(unsigned) old].max_refs);
175 ma->entries[(unsigned) old] = *ent;
176 ma->orig_map[(unsigned) ent->orig] = old;
180 static errcode_t ima_get(ext2_irel irel, ext2_ino_t old,
186 if (old > ma->max_inode)
188 if (ma->entries[(unsigned) old].new == 0)
190 *ent = ma->entries[(unsigned) old];
194 static errcode_t ima_get_by_orig(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
206 *old = ino;
217 static errcode_t ima_next(ext2_irel irel, ext2_ino_t *old,
226 *old = irel->current;
230 *old = 0;
306 static errcode_t ima_move(ext2_irel irel, ext2_ino_t old, ext2_ino_t new)
311 if ((old > ma->max_inode) || (new > ma->max_inode))
313 if (ma->entries[(unsigned) old].new == 0)
316 ma->entries[(unsigned) new] = ma->entries[(unsigned) old];
319 ma->ref_entries[(unsigned) new] = ma->ref_entries[(unsigned) old];
321 ma->entries[(unsigned) old].new = 0;
322 ma->ref_entries[(unsigned) old].num = 0;
323 ma->ref_entries[(unsigned) old].refs = 0;
329 static errcode_t ima_delete(ext2_irel irel, ext2_ino_t old)
334 if (old > ma->max_inode)
336 if (ma->entries[(unsigned) old].new == 0)
339 ma->entries[old].new = 0;
340 if (ma->ref_entries[(unsigned) old].refs)
341 ext2fs_free_mem(&ma->ref_entries[(unsigned) old].refs);
342 ma->orig_map[ma->entries[(unsigned) old].orig] = 0;
344 ma->ref_entries[(unsigned) old].num = 0;
345 ma->ref_entries[(unsigned) old].refs = 0;