Lines Matching refs:inode
25 void f2fs_mark_inode_dirty_sync(struct inode *inode, bool sync) in f2fs_mark_inode_dirty_sync() argument
27 if (is_inode_flag_set(inode, FI_NEW_INODE)) in f2fs_mark_inode_dirty_sync()
30 if (f2fs_inode_dirtied(inode, sync)) in f2fs_mark_inode_dirty_sync()
33 mark_inode_dirty_sync(inode); in f2fs_mark_inode_dirty_sync()
36 void f2fs_set_inode_flags(struct inode *inode) in f2fs_set_inode_flags() argument
38 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags()
51 if (file_is_encrypt(inode)) in f2fs_set_inode_flags()
53 if (file_is_verity(inode)) in f2fs_set_inode_flags()
57 inode_set_flags(inode, new_fl, in f2fs_set_inode_flags()
62 static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri) in __get_inode_rdev() argument
64 int extra_size = get_extra_isize(inode); in __get_inode_rdev()
66 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in __get_inode_rdev()
67 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in __get_inode_rdev()
69 inode->i_rdev = old_decode_dev( in __get_inode_rdev()
72 inode->i_rdev = new_decode_dev( in __get_inode_rdev()
89 static void __set_inode_rdev(struct inode *inode, struct f2fs_inode *ri) in __set_inode_rdev() argument
91 int extra_size = get_extra_isize(inode); in __set_inode_rdev()
93 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __set_inode_rdev()
94 if (old_valid_dev(inode->i_rdev)) { in __set_inode_rdev()
96 cpu_to_le32(old_encode_dev(inode->i_rdev)); in __set_inode_rdev()
101 cpu_to_le32(new_encode_dev(inode->i_rdev)); in __set_inode_rdev()
107 static void __recover_inline_status(struct inode *inode, struct page *ipage) in __recover_inline_status() argument
109 void *inline_data = inline_data_addr(inode, ipage); in __recover_inline_status()
111 __le32 *end = start + MAX_INLINE_DATA(inode) / sizeof(__le32); in __recover_inline_status()
117 set_inode_flag(inode, FI_DATA_EXIST); in __recover_inline_status()
118 set_raw_inline(inode, F2FS_INODE(ipage)); in __recover_inline_status()
203 static bool sanity_check_inode(struct inode *inode, struct page *node_page) in sanity_check_inode() argument
205 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in sanity_check_inode()
206 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode()
214 __func__, inode->i_ino, iblocks); in sanity_check_inode()
221 __func__, inode->i_ino, in sanity_check_inode()
227 && !f2fs_has_extra_attr(inode)) { in sanity_check_inode()
230 __func__, inode->i_ino); in sanity_check_inode()
234 if (f2fs_has_extra_attr(inode) && in sanity_check_inode()
238 __func__, inode->i_ino); in sanity_check_inode()
246 __func__, inode->i_ino, fi->i_extra_isize, in sanity_check_inode()
251 if (f2fs_has_extra_attr(inode) && in sanity_check_inode()
253 f2fs_has_inline_xattr(inode) && in sanity_check_inode()
258 __func__, inode->i_ino, fi->i_inline_xattr_size, in sanity_check_inode()
273 __func__, inode->i_ino, in sanity_check_inode()
279 if (f2fs_sanity_check_inline_data(inode)) { in sanity_check_inode()
282 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
286 if (f2fs_has_inline_dentry(inode) && !S_ISDIR(inode->i_mode)) { in sanity_check_inode()
289 __func__, inode->i_ino, inode->i_mode); in sanity_check_inode()
296 __func__, inode->i_ino); in sanity_check_inode()
300 if (f2fs_has_extra_attr(inode) && f2fs_sb_has_compression(sbi) && in sanity_check_inode()
308 __func__, inode->i_ino, in sanity_check_inode()
313 SECTOR_TO_BLOCK(inode->i_blocks)) { in sanity_check_inode()
317 __func__, inode->i_ino, in sanity_check_inode()
319 SECTOR_TO_BLOCK(inode->i_blocks)); in sanity_check_inode()
327 __func__, inode->i_ino, in sanity_check_inode()
336 static int do_read_inode(struct inode *inode) in do_read_inode() argument
338 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in do_read_inode()
339 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode()
346 if (f2fs_check_nid_range(sbi, inode->i_ino)) in do_read_inode()
349 node_page = f2fs_get_node_page(sbi, inode->i_ino); in do_read_inode()
355 inode->i_mode = le16_to_cpu(ri->i_mode); in do_read_inode()
356 i_uid_write(inode, le32_to_cpu(ri->i_uid)); in do_read_inode()
357 i_gid_write(inode, le32_to_cpu(ri->i_gid)); in do_read_inode()
358 set_nlink(inode, le32_to_cpu(ri->i_links)); in do_read_inode()
359 inode->i_size = le64_to_cpu(ri->i_size); in do_read_inode()
360 inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); in do_read_inode()
362 inode->i_atime.tv_sec = le64_to_cpu(ri->i_atime); in do_read_inode()
363 inode->i_ctime.tv_sec = le64_to_cpu(ri->i_ctime); in do_read_inode()
364 inode->i_mtime.tv_sec = le64_to_cpu(ri->i_mtime); in do_read_inode()
365 inode->i_atime.tv_nsec = le32_to_cpu(ri->i_atime_nsec); in do_read_inode()
366 inode->i_ctime.tv_nsec = le32_to_cpu(ri->i_ctime_nsec); in do_read_inode()
367 inode->i_mtime.tv_nsec = le32_to_cpu(ri->i_mtime_nsec); in do_read_inode()
368 inode->i_generation = le32_to_cpu(ri->i_generation); in do_read_inode()
369 if (S_ISDIR(inode->i_mode)) in do_read_inode()
371 else if (S_ISREG(inode->i_mode)) in do_read_inode()
376 if (S_ISREG(inode->i_mode)) in do_read_inode()
383 f2fs_init_extent_tree(inode, node_page); in do_read_inode()
385 get_inline_info(inode, ri); in do_read_inode()
387 fi->i_extra_isize = f2fs_has_extra_attr(inode) ? in do_read_inode()
392 } else if (f2fs_has_inline_xattr(inode) || in do_read_inode()
393 f2fs_has_inline_dentry(inode)) { in do_read_inode()
406 if (!sanity_check_inode(inode, node_page)) { in do_read_inode()
412 if (f2fs_has_inline_data(inode) && !f2fs_exist_data(inode)) in do_read_inode()
413 __recover_inline_status(inode, node_page); in do_read_inode()
416 if (!S_ISDIR(inode->i_mode) && !is_cold_node(node_page)) { in do_read_inode()
423 __get_inode_rdev(inode, ri); in do_read_inode()
425 if (S_ISREG(inode->i_mode)) { in do_read_inode()
432 set_inode_flag(inode, FI_FIRST_BLOCK_WRITTEN); in do_read_inode()
435 if (!f2fs_need_inode_block_update(sbi, inode->i_ino)) in do_read_inode()
436 fi->last_disk_size = inode->i_size; in do_read_inode()
439 set_inode_flag(inode, FI_PROJ_INHERIT); in do_read_inode()
441 if (f2fs_has_extra_attr(inode) && f2fs_sb_has_project_quota(sbi) && in do_read_inode()
448 if (f2fs_has_extra_attr(inode) && f2fs_sb_has_inode_crtime(sbi) && in do_read_inode()
454 if (f2fs_has_extra_attr(inode) && f2fs_sb_has_compression(sbi) && in do_read_inode()
464 set_inode_flag(inode, FI_COMPRESSED_FILE); in do_read_inode()
468 fi->i_disk_time[0] = inode->i_atime; in do_read_inode()
469 fi->i_disk_time[1] = inode->i_ctime; in do_read_inode()
470 fi->i_disk_time[2] = inode->i_mtime; in do_read_inode()
474 stat_inc_inline_xattr(inode); in do_read_inode()
475 stat_inc_inline_inode(inode); in do_read_inode()
476 stat_inc_inline_dir(inode); in do_read_inode()
477 stat_inc_compr_inode(inode); in do_read_inode()
478 stat_add_compr_blocks(inode, atomic_read(&fi->i_compr_blocks)); in do_read_inode()
483 struct inode *f2fs_iget(struct super_block *sb, unsigned long ino) in f2fs_iget()
486 struct inode *inode; in f2fs_iget() local
489 inode = iget_locked(sb, ino); in f2fs_iget()
490 if (!inode) in f2fs_iget()
493 if (!(inode->i_state & I_NEW)) { in f2fs_iget()
494 trace_f2fs_iget(inode); in f2fs_iget()
495 return inode; in f2fs_iget()
505 ret = do_read_inode(inode); in f2fs_iget()
510 inode->i_mapping->a_ops = &f2fs_node_aops; in f2fs_iget()
511 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
513 inode->i_mapping->a_ops = &f2fs_meta_aops; in f2fs_iget()
514 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
517 inode->i_mapping->a_ops = &f2fs_compress_aops; in f2fs_iget()
522 inode->i_mode |= S_IFREG; in f2fs_iget()
524 mapping_set_gfp_mask(inode->i_mapping, in f2fs_iget()
526 } else if (S_ISREG(inode->i_mode)) { in f2fs_iget()
527 inode->i_op = &f2fs_file_inode_operations; in f2fs_iget()
528 inode->i_fop = &f2fs_file_operations; in f2fs_iget()
529 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
530 } else if (S_ISDIR(inode->i_mode)) { in f2fs_iget()
531 inode->i_op = &f2fs_dir_inode_operations; in f2fs_iget()
532 inode->i_fop = &f2fs_dir_operations; in f2fs_iget()
533 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
534 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS); in f2fs_iget()
535 } else if (S_ISLNK(inode->i_mode)) { in f2fs_iget()
536 if (file_is_encrypt(inode)) in f2fs_iget()
537 inode->i_op = &f2fs_encrypted_symlink_inode_operations; in f2fs_iget()
539 inode->i_op = &f2fs_symlink_inode_operations; in f2fs_iget()
540 inode_nohighmem(inode); in f2fs_iget()
541 inode->i_mapping->a_ops = &f2fs_dblock_aops; in f2fs_iget()
542 } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in f2fs_iget()
543 S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { in f2fs_iget()
544 inode->i_op = &f2fs_special_inode_operations; in f2fs_iget()
545 init_special_inode(inode, inode->i_mode, inode->i_rdev); in f2fs_iget()
550 f2fs_set_inode_flags(inode); in f2fs_iget()
552 if (file_should_truncate(inode) && in f2fs_iget()
554 ret = f2fs_truncate(inode); in f2fs_iget()
557 file_dont_truncate(inode); in f2fs_iget()
560 unlock_new_inode(inode); in f2fs_iget()
561 trace_f2fs_iget(inode); in f2fs_iget()
562 return inode; in f2fs_iget()
565 f2fs_inode_synced(inode); in f2fs_iget()
566 iget_failed(inode); in f2fs_iget()
567 trace_f2fs_iget_exit(inode, ret); in f2fs_iget()
571 struct inode *f2fs_iget_retry(struct super_block *sb, unsigned long ino) in f2fs_iget_retry()
573 struct inode *inode; in f2fs_iget_retry() local
575 inode = f2fs_iget(sb, ino); in f2fs_iget_retry()
576 if (IS_ERR(inode)) { in f2fs_iget_retry()
577 if (PTR_ERR(inode) == -ENOMEM) { in f2fs_iget_retry()
582 return inode; in f2fs_iget_retry()
585 void f2fs_update_inode(struct inode *inode, struct page *node_page) in f2fs_update_inode() argument
588 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_inode()
593 f2fs_inode_synced(inode); in f2fs_update_inode()
597 ri->i_mode = cpu_to_le16(inode->i_mode); in f2fs_update_inode()
598 ri->i_advise = F2FS_I(inode)->i_advise; in f2fs_update_inode()
599 ri->i_uid = cpu_to_le32(i_uid_read(inode)); in f2fs_update_inode()
600 ri->i_gid = cpu_to_le32(i_gid_read(inode)); in f2fs_update_inode()
601 ri->i_links = cpu_to_le32(inode->i_nlink); in f2fs_update_inode()
602 ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); in f2fs_update_inode()
604 if (!f2fs_is_atomic_file(inode) || in f2fs_update_inode()
605 is_inode_flag_set(inode, FI_ATOMIC_COMMITTED)) in f2fs_update_inode()
606 ri->i_size = cpu_to_le64(i_size_read(inode)); in f2fs_update_inode()
615 set_raw_inline(inode, ri); in f2fs_update_inode()
617 ri->i_atime = cpu_to_le64(inode->i_atime.tv_sec); in f2fs_update_inode()
618 ri->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); in f2fs_update_inode()
619 ri->i_mtime = cpu_to_le64(inode->i_mtime.tv_sec); in f2fs_update_inode()
620 ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in f2fs_update_inode()
621 ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in f2fs_update_inode()
622 ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in f2fs_update_inode()
623 if (S_ISDIR(inode->i_mode)) in f2fs_update_inode()
625 cpu_to_le32(F2FS_I(inode)->i_current_depth); in f2fs_update_inode()
626 else if (S_ISREG(inode->i_mode)) in f2fs_update_inode()
628 cpu_to_le16(F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN]); in f2fs_update_inode()
629 ri->i_xattr_nid = cpu_to_le32(F2FS_I(inode)->i_xattr_nid); in f2fs_update_inode()
630 ri->i_flags = cpu_to_le32(F2FS_I(inode)->i_flags); in f2fs_update_inode()
631 ri->i_pino = cpu_to_le32(F2FS_I(inode)->i_pino); in f2fs_update_inode()
632 ri->i_generation = cpu_to_le32(inode->i_generation); in f2fs_update_inode()
633 ri->i_dir_level = F2FS_I(inode)->i_dir_level; in f2fs_update_inode()
635 if (f2fs_has_extra_attr(inode)) { in f2fs_update_inode()
636 ri->i_extra_isize = cpu_to_le16(F2FS_I(inode)->i_extra_isize); in f2fs_update_inode()
638 if (f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(inode))) in f2fs_update_inode()
640 cpu_to_le16(F2FS_I(inode)->i_inline_xattr_size); in f2fs_update_inode()
642 if (f2fs_sb_has_project_quota(F2FS_I_SB(inode)) && in f2fs_update_inode()
643 F2FS_FITS_IN_INODE(ri, F2FS_I(inode)->i_extra_isize, in f2fs_update_inode()
648 F2FS_I(inode)->i_projid); in f2fs_update_inode()
652 if (f2fs_sb_has_inode_crtime(F2FS_I_SB(inode)) && in f2fs_update_inode()
653 F2FS_FITS_IN_INODE(ri, F2FS_I(inode)->i_extra_isize, in f2fs_update_inode()
656 cpu_to_le64(F2FS_I(inode)->i_crtime.tv_sec); in f2fs_update_inode()
658 cpu_to_le32(F2FS_I(inode)->i_crtime.tv_nsec); in f2fs_update_inode()
661 if (f2fs_sb_has_compression(F2FS_I_SB(inode)) && in f2fs_update_inode()
662 F2FS_FITS_IN_INODE(ri, F2FS_I(inode)->i_extra_isize, in f2fs_update_inode()
666 &F2FS_I(inode)->i_compr_blocks)); in f2fs_update_inode()
668 F2FS_I(inode)->i_compress_algorithm; in f2fs_update_inode()
670 cpu_to_le16(F2FS_I(inode)->i_compress_flag); in f2fs_update_inode()
672 F2FS_I(inode)->i_log_cluster_size; in f2fs_update_inode()
676 __set_inode_rdev(inode, ri); in f2fs_update_inode()
679 if (inode->i_nlink == 0) in f2fs_update_inode()
682 F2FS_I(inode)->i_disk_time[0] = inode->i_atime; in f2fs_update_inode()
683 F2FS_I(inode)->i_disk_time[1] = inode->i_ctime; in f2fs_update_inode()
684 F2FS_I(inode)->i_disk_time[2] = inode->i_mtime; in f2fs_update_inode()
685 F2FS_I(inode)->i_disk_time[3] = F2FS_I(inode)->i_crtime; in f2fs_update_inode()
688 f2fs_inode_chksum_set(F2FS_I_SB(inode), node_page); in f2fs_update_inode()
692 void f2fs_update_inode_page(struct inode *inode) in f2fs_update_inode_page() argument
694 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_inode_page()
697 node_page = f2fs_get_node_page(sbi, inode->i_ino); in f2fs_update_inode_page()
710 f2fs_update_inode(inode, node_page); in f2fs_update_inode_page()
714 int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc) in f2fs_write_inode() argument
716 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_write_inode()
718 if (inode->i_ino == F2FS_NODE_INO(sbi) || in f2fs_write_inode()
719 inode->i_ino == F2FS_META_INO(sbi)) in f2fs_write_inode()
725 if (f2fs_is_time_consistent(inode) && in f2fs_write_inode()
726 !is_inode_flag_set(inode, FI_DIRTY_INODE)) in f2fs_write_inode()
736 f2fs_update_inode_page(inode); in f2fs_write_inode()
745 void f2fs_evict_inode(struct inode *inode) in f2fs_evict_inode() argument
747 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_evict_inode()
748 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_evict_inode()
752 f2fs_abort_atomic_write(inode, true); in f2fs_evict_inode()
760 trace_f2fs_evict_inode(inode); in f2fs_evict_inode()
761 truncate_inode_pages_final(&inode->i_data); in f2fs_evict_inode()
763 if ((inode->i_nlink || is_bad_inode(inode)) && in f2fs_evict_inode()
764 test_opt(sbi, COMPRESS_CACHE) && f2fs_compressed_file(inode)) in f2fs_evict_inode()
765 f2fs_invalidate_compress_pages(sbi, inode->i_ino); in f2fs_evict_inode()
767 if (inode->i_ino == F2FS_NODE_INO(sbi) || in f2fs_evict_inode()
768 inode->i_ino == F2FS_META_INO(sbi) || in f2fs_evict_inode()
769 inode->i_ino == F2FS_COMPRESS_INO(sbi)) in f2fs_evict_inode()
772 f2fs_bug_on(sbi, get_dirty_pages(inode)); in f2fs_evict_inode()
773 f2fs_remove_dirty_inode(inode); in f2fs_evict_inode()
775 f2fs_destroy_extent_tree(inode); in f2fs_evict_inode()
777 if (inode->i_nlink || is_bad_inode(inode)) in f2fs_evict_inode()
780 err = f2fs_dquot_initialize(inode); in f2fs_evict_inode()
786 f2fs_remove_ino_entry(sbi, inode->i_ino, APPEND_INO); in f2fs_evict_inode()
787 f2fs_remove_ino_entry(sbi, inode->i_ino, UPDATE_INO); in f2fs_evict_inode()
788 f2fs_remove_ino_entry(sbi, inode->i_ino, FLUSH_INO); in f2fs_evict_inode()
791 sb_start_intwrite(inode->i_sb); in f2fs_evict_inode()
792 set_inode_flag(inode, FI_NO_ALLOC); in f2fs_evict_inode()
793 i_size_write(inode, 0); in f2fs_evict_inode()
795 if (F2FS_HAS_BLOCKS(inode)) in f2fs_evict_inode()
796 err = f2fs_truncate(inode); in f2fs_evict_inode()
805 err = f2fs_remove_inode_page(inode); in f2fs_evict_inode()
815 if (is_inode_flag_set(inode, FI_DIRTY_INODE)) { in f2fs_evict_inode()
816 f2fs_warn(F2FS_I_SB(inode), in f2fs_evict_inode()
818 inode->i_ino); in f2fs_evict_inode()
819 f2fs_inode_synced(inode); in f2fs_evict_inode()
832 f2fs_update_inode_page(inode); in f2fs_evict_inode()
833 if (dquot_initialize_needed(inode)) in f2fs_evict_inode()
837 sb_end_intwrite(inode->i_sb); in f2fs_evict_inode()
839 dquot_drop(inode); in f2fs_evict_inode()
841 stat_dec_inline_xattr(inode); in f2fs_evict_inode()
842 stat_dec_inline_dir(inode); in f2fs_evict_inode()
843 stat_dec_inline_inode(inode); in f2fs_evict_inode()
844 stat_dec_compr_inode(inode); in f2fs_evict_inode()
845 stat_sub_compr_blocks(inode, in f2fs_evict_inode()
850 f2fs_bug_on(sbi, is_inode_flag_set(inode, FI_DIRTY_INODE)); in f2fs_evict_inode()
852 f2fs_inode_synced(inode); in f2fs_evict_inode()
855 if (inode->i_ino) in f2fs_evict_inode()
856 invalidate_mapping_pages(NODE_MAPPING(sbi), inode->i_ino, in f2fs_evict_inode()
857 inode->i_ino); in f2fs_evict_inode()
860 if (inode->i_nlink) { in f2fs_evict_inode()
861 if (is_inode_flag_set(inode, FI_APPEND_WRITE)) in f2fs_evict_inode()
862 f2fs_add_ino_entry(sbi, inode->i_ino, APPEND_INO); in f2fs_evict_inode()
863 if (is_inode_flag_set(inode, FI_UPDATE_WRITE)) in f2fs_evict_inode()
864 f2fs_add_ino_entry(sbi, inode->i_ino, UPDATE_INO); in f2fs_evict_inode()
866 if (is_inode_flag_set(inode, FI_FREE_NID)) { in f2fs_evict_inode()
867 f2fs_alloc_nid_failed(sbi, inode->i_ino); in f2fs_evict_inode()
868 clear_inode_flag(inode, FI_FREE_NID); in f2fs_evict_inode()
877 fscrypt_put_encryption_info(inode); in f2fs_evict_inode()
878 fsverity_cleanup_inode(inode); in f2fs_evict_inode()
879 clear_inode(inode); in f2fs_evict_inode()
883 void f2fs_handle_failed_inode(struct inode *inode) in f2fs_handle_failed_inode() argument
885 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_handle_failed_inode()
893 clear_nlink(inode); in f2fs_handle_failed_inode()
899 f2fs_update_inode_page(inode); in f2fs_handle_failed_inode()
900 f2fs_inode_synced(inode); in f2fs_handle_failed_inode()
903 unlock_new_inode(inode); in f2fs_handle_failed_inode()
910 err = f2fs_get_node_info(sbi, inode->i_ino, &ni, false); in f2fs_handle_failed_inode()
913 set_inode_flag(inode, FI_FREE_NID); in f2fs_handle_failed_inode()
924 f2fs_add_orphan_inode(inode); in f2fs_handle_failed_inode()
926 f2fs_alloc_nid_done(sbi, inode->i_ino); in f2fs_handle_failed_inode()
928 set_inode_flag(inode, FI_FREE_NID); in f2fs_handle_failed_inode()
935 iput(inode); in f2fs_handle_failed_inode()