f2fs: mark recovery flag correctly in read_raw_super_block()
authorChengguang Xu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
Fri, 27 Sep 2019 01:35:48 +0000 (09:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Oct 2019 17:32:36 +0000 (10:32 -0700)
commited3520427f57327f581de0cc28c1c30df08f0103
tree9d20d1939e90c3a188a3b8e0d368d8d16ad42ce5
parentfe1897eaa6646f5a64a4cee0e6473ed9887d324b
f2fs: mark recovery flag correctly in read_raw_super_block()

On the combination of first fail and second success,
we will miss to mark recovery flag because currently
we reuse err variable in the loop.

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c