aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorLu Hongfei <luhongfei@vivo.com>2023-07-07 18:55:16 +0800
committerTheodore Ts'o <tytso@mit.edu>2023-08-27 11:27:12 -0400
commit89cadf6e22a958014d09c901caf0cd2105780dbe (patch)
tree1c11d019ceb500dcc312396e6035563c9942bf24 /fs/ext4
parent1524773425ae8113b0b782886366e68656b34e53 (diff)
downloadlinux-89cadf6e22a958014d09c901caf0cd2105780dbe.tar.gz
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 <luhongfei@vivo.com> Link: https://lore.kernel.org/r/20230707105516.9156-1-luhongfei@vivo.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 3d5b0b71d7f5b..96068d687d9da 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -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;