summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-04-28 17:58:34 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 10:21:57 +0900
commit5c1f9927ec1a4753e845193bde99ac3b03b08818 (patch)
tree0f4c099c100a59a2016092a9640f3bba03f54eae /fs/f2fs
parent7f7670fe9fe47e7e56db658eb8831febe47627f2 (diff)
downloadop-kernel-dev-5c1f9927ec1a4753e845193bde99ac3b03b08818.zip
op-kernel-dev-5c1f9927ec1a4753e845193bde99ac3b03b08818.tar.gz
f2fs: set errno when f2fs_iget failed in recover_dentry
We should set the error number correctly when we fail in recover_dentry(), so the recover flow could stop for the reason as error number shows instead of continuing. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index be1e3e8..e950a2f 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -75,7 +75,8 @@ retry:
einode = f2fs_iget(inode->i_sb, le32_to_cpu(de->ino));
if (IS_ERR(einode)) {
WARN_ON(1);
- if (PTR_ERR(einode) == -ENOENT)
+ err = PTR_ERR(einode);
+ if (err == -ENOENT)
err = -EEXIST;
goto out_unmap_put;
}
OpenPOWER on IntegriCloud