diff options
author | Daeho Jeong <daehojeong@google.com> | 2021-08-02 21:22:45 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-08-03 11:16:22 -0700 |
commit | 0f6b56ec958d49e2b3dc955cdac6b62702c04b72 (patch) | |
tree | 7d6b246158ca89612e6004bf773fa1224a87d5ac /fs/f2fs/super.c | |
parent | 4f993264fe2965c344f223d854ccbb549b16ed71 (diff) | |
download | linux-0f6b56ec958d49e2b3dc955cdac6b62702c04b72.tar.gz linux-0f6b56ec958d49e2b3dc955cdac6b62702c04b72.tar.bz2 linux-0f6b56ec958d49e2b3dc955cdac6b62702c04b72.zip |
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>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index a4fed184b811..84cd085020cd 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3466,6 +3466,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi) sbi->next_victim_seg[FG_GC] = NULL_SEGNO; sbi->max_victim_search = DEF_MAX_VICTIM_SEARCH; sbi->migration_granularity = sbi->segs_per_sec; + sbi->seq_file_ra_mul = MIN_RA_MUL; sbi->dir_level = DEF_DIR_LEVEL; sbi->interval_time[CP_TIME] = DEF_CP_INTERVAL; |