From: Jaegeuk Kim Date: Wed, 25 Feb 2015 02:01:46 +0000 (-0800) Subject: f2fs: avoid wrong error during recovery X-Git-Tag: v5.15~15937^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fbc418f99caf65a53f3921ac2a32a0a0af7aba2;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index b2a92d4..6e40874 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);