Lines Matching refs:inum

45 static struct ubifs_orphan *orphan_add(struct ubifs_info *c, ino_t inum,
54 orphan->inum = inum;
68 if (inum < o->inum)
70 else if (inum > o->inum)
92 dbg_gen("ino %lu", (unsigned long)inum);
96 static struct ubifs_orphan *lookup_orphan(struct ubifs_info *c, ino_t inum)
104 if (inum < o->inum)
106 else if (inum > o->inum)
132 dbg_gen("deleted twice ino %lu", (unsigned long)orph->inum);
140 dbg_gen("delete later ino %lu", (unsigned long)orph->inum);
150 * @inum: orphan inode number
155 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum)
165 orphan = orphan_add(c, inum, NULL);
169 lowest_xent_key(c, &key, inum);
182 xattr_inum = le64_to_cpu(xent->inum);
203 * @inum: orphan inode number
207 void ubifs_delete_orphan(struct ubifs_info *c, ino_t inum)
213 orph = lookup_orphan(c, inum);
216 ubifs_err(c, "missing orphan ino %lu", (unsigned long)inum);
376 orph->inos[i] = cpu_to_le64(orphan->inum);
524 dbg_gen("deleting orphan ino %lu", (unsigned long)orphan->inum);
576 * @inum: orphan inode number
582 static int insert_dead_orphan(struct ubifs_info *c, ino_t inum)
590 orphan->inum = inum;
596 if (inum < o->inum)
598 else if (inum > o->inum)
613 dbg_mnt("ino %lu, new %d, tot %d", (unsigned long)inum,
638 ino_t inum;
696 inum = le64_to_cpu(orph->inos[i]);
698 ino_key_init(c, &key1, inum);
709 (unsigned long)inum);
711 lowest_ino_key(c, &key1, inum);
712 highest_ino_key(c, &key2, inum);
719 err = insert_dead_orphan(c, inum);
842 ino_t inum;
854 static bool dbg_find_orphan(struct ubifs_info *c, ino_t inum)
859 found = !!lookup_orphan(c, inum);
865 static int dbg_ins_check_orphan(struct rb_root *root, ino_t inum)
873 orphan->inum = inum;
879 if (inum < o->inum)
881 else if (inum > o->inum)
893 static int dbg_find_check_orphan(struct rb_root *root, ino_t inum)
901 if (inum < o->inum)
903 else if (inum > o->inum)
923 ino_t inum;
926 inum = key_inum(c, &zbr->key);
927 if (inum != ci->last_ino) {
931 (unsigned long)inum, key_type(c, &zbr->key));
932 ci->last_ino = inum;
941 if (!dbg_find_check_orphan(&ci->root, inum) &&
942 !dbg_find_orphan(c, inum)) {
944 (unsigned long)inum);
956 ino_t inum;
966 inum = le64_to_cpu(orph->inos[i]);
967 err = dbg_ins_check_orphan(&ci->root, inum);