f2fs: cover large section in sanity check of super
authorJaegeuk Kim <jaegeuk@kernel.org>
Sun, 20 Mar 2016 22:33:20 +0000 (15:33 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 28 Mar 2016 17:43:01 +0000 (10:43 -0700)
commitfd694733d523df1e0a583cf5c4c08e41d7bf9fa3
tree88eb7c9bc980ad39587cd211b6ba4d80f26ce824
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
f2fs: cover large section in sanity check of super

This patch fixes the bug which does not cover a large section case when checking
the sanity of superblock.
If f2fs detects misalignment, it will fix the superblock during the mount time,
so it doesn't need to trigger fsck.f2fs further.

Reported-by: Matthias Prager <linux@matthiasprager.de>
Reported-by: David Gnedt <david.gnedt@davizone.at>
Cc: stable 4.5+ <stable@vger.kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c