fsck.f2fs: read ahead xattr & direct node blocks
authorYunlei He <heyunlei@huawei.com>
Mon, 29 Jan 2018 09:37:41 +0000 (17:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 7 May 2018 21:49:37 +0000 (14:49 -0700)
commitfffc395e6a593f651e21f89cb330288f5507ef11
treeb0242527bc219aac120179df08c1c0fe26e9ef88
parent10eea8abb8f31373e9a2d898665da6d31cffcfac
fsck.f2fs: read ahead xattr & direct node blocks

This patch read ahead xattr & direct node blocks, and
keep the order:

1. check data blocks
2. readahead xattr block
3. fsck xattr block
4. readahead {d,id,did}node block
5. fsck {d,id,did}node block

With above order, we can avoid unneeded readahead before
sub-directory iterated traversing or encountering error.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
[Jaegeuk Kim: Fix a bug breaking the right order.]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c