Lines Matching refs:ino

478 static void __add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino,
489 e = radix_tree_lookup(&im->ino_root, ino);
492 if (unlikely(radix_tree_insert(&im->ino_root, ino, e)))
496 e->ino = ino;
513 static void __remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
519 e = radix_tree_lookup(&im->ino_root, ino);
522 radix_tree_delete(&im->ino_root, ino);
531 void f2fs_add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
533 /* add new dirty ino entry into list */
534 __add_ino_entry(sbi, ino, 0, type);
537 void f2fs_remove_ino_entry(struct f2fs_sb_info *sbi, nid_t ino, int type)
539 /* remove dirty ino entry from list */
540 __remove_ino_entry(sbi, ino, type);
544 bool f2fs_exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode)
550 e = radix_tree_lookup(&im->ino_root, ino);
566 radix_tree_delete(&im->ino_root, e->ino);
574 void f2fs_set_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
577 __add_ino_entry(sbi, ino, devidx, type);
580 bool f2fs_is_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
588 e = radix_tree_lookup(&im->ino_root, ino);
629 /* add new orphan ino entry into list */
634 void f2fs_remove_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
637 __remove_ino_entry(sbi, ino, ORPHAN_INO);
640 static int recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
646 inode = f2fs_iget_retry(sbi->sb, ino);
667 err = f2fs_get_node_info(sbi, ino, &ni);
680 f2fs_warn(sbi, "%s: orphan failed (ino=%x), run fsck to fix.",
681 __func__, ino);
735 nid_t ino = le32_to_cpu(orphan_blk->ino[j]);
736 err = recover_orphan_inode(sbi, ino);
788 orphan_blk->ino[nentries++] = cpu_to_le32(orphan->ino);
1064 unsigned long ino = 0;
1105 if (ino == cur_ino)
1108 ino = cur_ino;