f2fs: add sysfs node to control ra_pages for fadvise seq file
authorDaeho Jeong <daehojeong@google.com>
Tue, 3 Aug 2021 04:22:45 +0000 (21:22 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 3 Aug 2021 18:16:22 +0000 (11:16 -0700)
commit0f6b56ec958d49e2b3dc955cdac6b62702c04b72
tree7d6b246158ca89612e6004bf773fa1224a87d5ac
parent4f993264fe2965c344f223d854ccbb549b16ed71
f2fs: add sysfs node to control ra_pages for fadvise seq file

fadvise() allows the user to expand the readahead window to double with
POSIX_FADV_SEQUENTIAL, now. But, in some use cases, it is not that
sufficient and we need to meet the need in a restricted way. We can
control the multiplier value of bdi device readahead between 2 (default)
and 256 for POSIX_FADV_SEQUENTIAL advise option.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c
fs/f2fs/sysfs.c