]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4048a81394ad50e298afbf5778dd0e362d7606cb
treeb12f5a30c0b1d11f823c544bb9571693bae1b1c8
parentc5c3fd7b098a4b042d9b032aa4a11f20f7e159ca
f2fs: slightly reorganize read_raw_super_block

read_raw_super_block was introduced to help find the
first valid superblock. Commit 033f59a782e2 ("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