Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f3ec995 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: handle error case with f2fs_bug_on



It's enough to show BUG or WARN by f2fs_bug_on for error case.
Then, we don't need to remain corrupted filesystem.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent dd11a5df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -482,6 +482,8 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
#endif
				/* We should not get -ENOSPC */
				f2fs_bug_on(sbi, err);
				if (err)
					goto err;
			}

			/* Check the previous node page having this index */