Commit 133de5a0 authored by Kemeng Shi's avatar Kemeng Shi Committed by Theodore Ts'o

ext4: remove unused return value of __mb_check_buddy

Remove unused return value of __mb_check_buddy.
Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240105092102.496631-2-shikemeng@huaweicloud.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent c5f3a382
...@@ -677,7 +677,7 @@ do { \ ...@@ -677,7 +677,7 @@ do { \
} \ } \
} while (0) } while (0)
static int __mb_check_buddy(struct ext4_buddy *e4b, char *file, static void __mb_check_buddy(struct ext4_buddy *e4b, char *file,
const char *function, int line) const char *function, int line)
{ {
struct super_block *sb = e4b->bd_sb; struct super_block *sb = e4b->bd_sb;
...@@ -696,7 +696,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file, ...@@ -696,7 +696,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
void *buddy2; void *buddy2;
if (e4b->bd_info->bb_check_counter++ % 10) if (e4b->bd_info->bb_check_counter++ % 10)
return 0; return;
while (order > 1) { while (order > 1) {
buddy = mb_find_buddy(e4b, order, &max); buddy = mb_find_buddy(e4b, order, &max);
...@@ -758,7 +758,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file, ...@@ -758,7 +758,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
grp = ext4_get_group_info(sb, e4b->bd_group); grp = ext4_get_group_info(sb, e4b->bd_group);
if (!grp) if (!grp)
return NULL; return;
list_for_each(cur, &grp->bb_prealloc_list) { list_for_each(cur, &grp->bb_prealloc_list) {
ext4_group_t groupnr; ext4_group_t groupnr;
struct ext4_prealloc_space *pa; struct ext4_prealloc_space *pa;
...@@ -768,7 +768,6 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file, ...@@ -768,7 +768,6 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
for (i = 0; i < pa->pa_len; i++) for (i = 0; i < pa->pa_len; i++)
MB_CHECK_ASSERT(mb_test_bit(k + i, buddy)); MB_CHECK_ASSERT(mb_test_bit(k + i, buddy));
} }
return 0;
} }
#undef MB_CHECK_ASSERT #undef MB_CHECK_ASSERT
#define mb_check_buddy(e4b) __mb_check_buddy(e4b, \ #define mb_check_buddy(e4b) __mb_check_buddy(e4b, \
......
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