summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@motorola.com>2015-02-24 18:01:46 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-03-03 09:58:48 -0800
commit8fbc418f99caf65a53f3921ac2a32a0a0af7aba2 (patch)
tree0e79d99330c3054b9c600ccf88cda5bd2c6332b1 /fs/f2fs/recovery.c
parent1614091dc1551d1ddeda7420df8ab5ad89b04987 (diff)
downloadlinux-8fbc418f99caf65a53f3921ac2a32a0a0af7aba2.tar.bz2
f2fs: avoid wrong error during recovery
During the roll-forward recovery, -ENOENT for f2fs_iget can be skipped. So, this error value should not be propagated. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index b2a92d47c5d7..6e40874dfbb9 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -212,8 +212,10 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
if (IS_ERR(entry->inode)) {
err = PTR_ERR(entry->inode);
kmem_cache_free(fsync_entry_slab, entry);
- if (err == -ENOENT)
+ if (err == -ENOENT) {
+ err = 0;
goto next;
+ }
break;
}
list_add_tail(&entry->list, head);