f2fs: relocate readahead codes in readdir()
authorChao Yu <yuchao0@huawei.com>
Fri, 13 Oct 2017 10:01:35 +0000 (18:01 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:28:13 +0000 (19:28 -0800)
commit372b93f94f7e024d9a87f6dc104b0425f581046d
tree54de185b271ebe7aef889026a62e54bdb0426622
parent457e9c032c4a85b6384ee929f13a45e0156f778b
f2fs: relocate readahead codes in readdir()

Previously, for large directory, we just do readahead only once in
readdir(), readdir()'s performance may drop when traversing latter
blocks. In order to avoid this, relocate readahead codes to covering
all traverse flow.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c