Lines Matching refs:old

26 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
28 static errcode_t ima_get(ext2_irel irel, ext2_ino_t old,
30 static errcode_t ima_get_by_orig(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
33 static errcode_t ima_next(ext2_irel irel, ext2_ino_t *old,
39 static errcode_t ima_move(ext2_irel irel, ext2_ino_t old, ext2_ino_t new);
40 static errcode_t ima_delete(ext2_irel irel, ext2_ino_t old);
139 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
148 if (old > ma->max_inode)
155 if (ma->entries[(unsigned) old].new == 0)
156 ent->orig = old;
158 ent->orig = ma->entries[(unsigned) old].orig;
163 ref_ent = ma->ref_entries + (unsigned) old;
165 ma->entries[(unsigned) old].max_refs) {
168 ma->entries[(unsigned) old].max_refs);
174 ma->entries[(unsigned) old] = *ent;
175 ma->orig_map[(unsigned) ent->orig] = old;
179 static errcode_t ima_get(ext2_irel irel, ext2_ino_t old,
185 if (old > ma->max_inode)
187 if (ma->entries[(unsigned) old].new == 0)
189 *ent = ma->entries[(unsigned) old];
193 static errcode_t ima_get_by_orig(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
205 *old = ino;
216 static errcode_t ima_next(ext2_irel irel, ext2_ino_t *old,
225 *old = irel->current;
229 *old = 0;
305 static errcode_t ima_move(ext2_irel irel, ext2_ino_t old, ext2_ino_t new)
310 if ((old > ma->max_inode) || (new > ma->max_inode))
312 if (ma->entries[(unsigned) old].new == 0)
315 ma->entries[(unsigned) new] = ma->entries[(unsigned) old];
318 ma->ref_entries[(unsigned) new] = ma->ref_entries[(unsigned) old];
320 ma->entries[(unsigned) old].new = 0;
321 ma->ref_entries[(unsigned) old].num = 0;
322 ma->ref_entries[(unsigned) old].refs = 0;
328 static errcode_t ima_delete(ext2_irel irel, ext2_ino_t old)
333 if (old > ma->max_inode)
335 if (ma->entries[(unsigned) old].new == 0)
338 ma->entries[old].new = 0;
339 if (ma->ref_entries[(unsigned) old].refs)
340 ext2fs_free_mem(&ma->ref_entries[(unsigned) old].refs);
341 ma->orig_map[ma->entries[(unsigned) old].orig] = 0;
343 ma->ref_entries[(unsigned) old].num = 0;
344 ma->ref_entries[(unsigned) old].refs = 0;