summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-05-22 12:03:47 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:47 +0900
commita68d0aa1197bf626011845ee125fe625f8325d27 (patch)
tree29568093a7f6f5602e10128c0de4422cbb5b382a /fs
parent0bbbaf8b31511bc8902c7ff381c3a4c83c141529 (diff)
downloadlinux-3.10-a68d0aa1197bf626011845ee125fe625f8325d27.tar.gz
linux-3.10-a68d0aa1197bf626011845ee125fe625f8325d27.tar.bz2
linux-3.10-a68d0aa1197bf626011845ee125fe625f8325d27.zip
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: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/namei.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 729b2854854..71aa30559c5 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -191,7 +191,6 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
return 0;
out:
clear_inode_flag(F2FS_I(inode), FI_INC_LINK);
- make_bad_inode(inode);
iput(inode);
return err;
}