f2fs: slightly reorganize read_raw_super_block
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 17 Feb 2016 00:59:01 +0000 (08:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 05:39:56 +0000 (21:39 -0800)
commit2b39e9072d79ab2525100413f3f7a0b8a3e15873
treeb12f5a30c0b1d11f823c544bb9571693bae1b1c8
parent1515aef0130845c6a5c72a3710df362f79eb9fb1
f2fs: slightly reorganize read_raw_super_block

read_raw_super_block was introduced to help find the
first valid superblock. Commit da554e48caab ("f2fs:
recovering broken superblock during mount") changed the
behaviour to read both of them and check whether need
the recovery flag or not. So the comment before this
function isn't consistent with what it actually does.
Also, the origin code use two tags to round the err
cases, which isn't so readable. So this patch amend
the comment and slightly reorganize it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c