summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongpeng Yang <yangyongpeng@xiaomi.com>2026-01-07 05:33:47 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2026-01-07 06:17:09 +0300
commit071e50d61cf2474bec724c10bb1ae8082ef6c237 (patch)
tree24f39de6495eeed68e177c953cb8c0bd7f08c981
parent98ea0039dbfdd00e5cc1b9a8afa40434476c0955 (diff)
downloadlinux-071e50d61cf2474bec724c10bb1ae8082ef6c237.tar.xz
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>
-rw-r--r--fs/f2fs/f2fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 399514187280..ded41b416ed7 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1808,7 +1808,7 @@ struct f2fs_sb_info {
unsigned int total_valid_node_count; /* valid node block count */
int dir_level; /* directory level */
bool readdir_ra; /* readahead inode in readdir */
- u64 max_io_bytes; /* max io bytes to merge IOs */
+ unsigned int max_io_bytes; /* max io bytes to merge IOs */
block_t user_block_count; /* # of user blocks */
block_t total_valid_block_count; /* # of valid blocks */
@@ -1956,7 +1956,7 @@ struct f2fs_sb_info {
unsigned int gc_segment_mode; /* GC state for reclaimed segments */
unsigned int gc_reclaimed_segs[MAX_GC_MODE]; /* Reclaimed segs for each mode */
- unsigned long seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */
+ unsigned int seq_file_ra_mul; /* multiplier for ra_pages of seq. files in fadvise */
int max_fragment_chunk; /* max chunk size for block fragmentation mode */
int max_fragment_hole; /* max hole size for block fragmentation mode */