]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/f2fs/dir.c
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>
Thu, 26 Oct 2017 08:44:19 +0000 (10:44 +0200)
commitcb7a84486577a95c0300a12eb2e9cef4bd126628
tree1f10f669acc864168ef8705d4347acb50cc3d37d
parent4414dea8d32bb2a351e1e84eebcdc7bff22864b0
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