Skip to content

Commit 89cadf6

Browse files
Lu Hongfeitytso
authored andcommitted
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: Lu Hongfei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 1524773 commit 89cadf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/mballoc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ void ext4_mb_generate_buddy(struct super_block *sb,
12561256
static int ext4_mb_init_cache(struct page *page, char *incore, gfp_t gfp)
12571257
{
12581258
ext4_group_t ngroups;
1259-
int blocksize;
1259+
unsigned int blocksize;
12601260
int blocks_per_page;
12611261
int groups_per_page;
12621262
int err = 0;

0 commit comments

Comments
 (0)