ext4: change the type of blocksize in ext4_mb_init_cache()
authorLu Hongfei <luhongfei@vivo.com>
Fri, 7 Jul 2023 10:55:16 +0000 (18:55 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 27 Aug 2023 15:27:12 +0000 (11:27 -0400)
The return value type of i_blocksize() is 'unsigned int', so the
type of blocksize has been modified from 'int' to 'unsigned int'
to ensure data type consistency.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Link: https://lore.kernel.org/r/20230707105516.9156-1-luhongfei@vivo.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c

index 3d5b0b7..96068d6 100644 (file)
@@ -1256,7 +1256,7 @@ void ext4_mb_generate_buddy(struct super_block *sb,
 static int ext4_mb_init_cache(struct page *page, char *incore, gfp_t gfp)
 {
        ext4_group_t ngroups;
-       int blocksize;
+       unsigned int blocksize;
        int blocks_per_page;
        int groups_per_page;
        int err = 0;