Lines Matching refs:ino
501 static void __add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino,
509 e = radix_tree_lookup(&im->ino_root, ino);
521 e = radix_tree_lookup(&im->ino_root, ino);
529 if (unlikely(radix_tree_insert(&im->ino_root, ino, e)))
533 e->ino = ino;
550 static void __remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
556 e = radix_tree_lookup(&im->ino_root, ino);
559 radix_tree_delete(&im->ino_root, ino);
568 void f2fs_add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
570 /* add new dirty ino entry into list */
571 __add_ino_entry(sbi, ino, 0, type);
574 void f2fs_remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
576 /* remove dirty ino entry from list */
577 __remove_ino_entry(sbi, ino, type);
581 bool f2fs_exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode)
587 e = radix_tree_lookup(&im->ino_root, ino);
603 radix_tree_delete(&im->ino_root, e->ino);
611 void f2fs_set_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
614 __add_ino_entry(sbi, ino, devidx, type);
617 bool f2fs_is_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
625 e = radix_tree_lookup(&im->ino_root, ino);
665 /* add new orphan ino entry into list */
670 void f2fs_remove_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
673 __remove_ino_entry(sbi, ino, ORPHAN_INO);
676 static int recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
682 inode = f2fs_iget_retry(sbi->sb, ino);
703 err = f2fs_get_node_info(sbi, ino, &ni, false);
716 f2fs_warn(sbi, "%s: orphan failed (ino=%x), run fsck to fix.",
717 __func__, ino);
754 nid_t ino = le32_to_cpu(orphan_blk->ino[j]);
756 err = recover_orphan_inode(sbi, ino);
801 orphan_blk->ino[nentries++] = cpu_to_le32(orphan->ino);
1074 unsigned long ino = 0;
1115 if (ino == cur_ino)
1118 ino = cur_ino;