@@ -677,7 +677,7 @@ do { \
677
677
} \
678
678
} while (0)
679
679
680
- static int __mb_check_buddy (struct ext4_buddy * e4b , char * file ,
680
+ static void __mb_check_buddy (struct ext4_buddy * e4b , char * file ,
681
681
const char * function , int line )
682
682
{
683
683
struct super_block * sb = e4b -> bd_sb ;
@@ -696,7 +696,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
696
696
void * buddy2 ;
697
697
698
698
if (e4b -> bd_info -> bb_check_counter ++ % 10 )
699
- return 0 ;
699
+ return ;
700
700
701
701
while (order > 1 ) {
702
702
buddy = mb_find_buddy (e4b , order , & max );
@@ -758,7 +758,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
758
758
759
759
grp = ext4_get_group_info (sb , e4b -> bd_group );
760
760
if (!grp )
761
- return NULL ;
761
+ return ;
762
762
list_for_each (cur , & grp -> bb_prealloc_list ) {
763
763
ext4_group_t groupnr ;
764
764
struct ext4_prealloc_space * pa ;
@@ -768,7 +768,6 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
768
768
for (i = 0 ; i < pa -> pa_len ; i ++ )
769
769
MB_CHECK_ASSERT (mb_test_bit (k + i , buddy ));
770
770
}
771
- return 0 ;
772
771
}
773
772
#undef MB_CHECK_ASSERT
774
773
#define mb_check_buddy (e4b ) __mb_check_buddy(e4b, \
0 commit comments