aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 618829e8049c..4460400133cf 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -598,7 +598,7 @@ static int __f2fs_tmpfile(struct inode *dir, struct dentry *dentry,
598 * add this non-linked tmpfile to orphan list, in this way we could 598 * add this non-linked tmpfile to orphan list, in this way we could
599 * remove all unused data of tmpfile after abnormal power-off. 599 * remove all unused data of tmpfile after abnormal power-off.
600 */ 600 */
601 add_orphan_inode(sbi, inode->i_ino); 601 add_orphan_inode(inode);
602 alloc_nid_done(sbi, inode->i_ino); 602 alloc_nid_done(sbi, inode->i_ino);
603 603
604 if (whiteout) { 604 if (whiteout) {
@@ -712,7 +712,7 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
712 up_write(&F2FS_I(new_inode)->i_sem); 712 up_write(&F2FS_I(new_inode)->i_sem);
713 713
714 if (!new_inode->i_nlink) 714 if (!new_inode->i_nlink)
715 add_orphan_inode(sbi, new_inode->i_ino); 715 add_orphan_inode(new_inode);
716 else 716 else
717 release_orphan_inode(sbi); 717 release_orphan_inode(sbi);
718 } else { 718 } else {