Commit 89cadf6e authored by Lu Hongfei's avatar Lu Hongfei Committed by Theodore Ts'o

ext4: change the type of blocksize in ext4_mb_init_cache()

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: default avatarLu Hongfei <luhongfei@vivo.com>
Link: https://lore.kernel.org/r/20230707105516.9156-1-luhongfei@vivo.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 15247734
...@@ -1256,7 +1256,7 @@ void ext4_mb_generate_buddy(struct super_block *sb, ...@@ -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) static int ext4_mb_init_cache(struct page *page, char *incore, gfp_t gfp)
{ {
ext4_group_t ngroups; ext4_group_t ngroups;
int blocksize; unsigned int blocksize;
int blocks_per_page; int blocks_per_page;
int groups_per_page; int groups_per_page;
int err = 0; int err = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment