Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

f2fs: change seq_file_ra_mul and max_io_bytes to unsigned int

{struct file_ra_state}->ra_pages and {struct bio}->bi_iter.bi_size is
defined as unsigned int, so values of seq_file_ra_mul and max_io_bytes
exceeding UINT_MAX are meaningless.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Yongpeng Yang and committed by
Jaegeuk Kim
071e50d6 98ea0039

+2 -2
+2 -2
fs/f2fs/f2fs.h
··· 1808 1808 unsigned int total_valid_node_count; /* valid node block count */ 1809 1809 int dir_level; /* directory level */ 1810 1810 bool readdir_ra; /* readahead inode in readdir */ 1811 - u64 max_io_bytes; /* max io bytes to merge IOs */ 1811 + unsigned int max_io_bytes; /* max io bytes to merge IOs */ 1812 1812 1813 1813 block_t user_block_count; /* # of user blocks */ 1814 1814 block_t total_valid_block_count; /* # of valid blocks */ ··· 1956 1956 unsigned int gc_segment_mode; /* GC state for reclaimed segments */ 1957 1957 unsigned int gc_reclaimed_segs[MAX_GC_MODE]; /* Reclaimed segs for each mode */ 1958 1958 1959 - unsigned long seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */ 1959 + unsigned int seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */ 1960 1960 1961 1961 int max_fragment_chunk; /* max chunk size for block fragmentation mode */ 1962 1962 int max_fragment_hole; /* max hole size for block fragmentation mode */