Commit 93ff10d6 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: should not make_bad_inode on f2fs_link failure

If -ENOSPC is met during f2fs_link, we should not make the inode as bad.
The inode is still alive.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 39cf72cf
...@@ -191,7 +191,6 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir, ...@@ -191,7 +191,6 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
return 0; return 0;
out: out:
clear_inode_flag(F2FS_I(inode), FI_INC_LINK); clear_inode_flag(F2FS_I(inode), FI_INC_LINK);
make_bad_inode(inode);
iput(inode); iput(inode);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment