@@ -1150,7 +1150,7 @@ ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group,
11501150 return ret ;
11511151}
11521152
1153- static void ext4_mb_release_desc (struct ext4_buddy * e4b )
1153+ static void ext4_mb_unload_buddy (struct ext4_buddy * e4b )
11541154{
11551155 if (e4b -> bd_bitmap_page )
11561156 page_cache_release (e4b -> bd_bitmap_page );
@@ -1617,7 +1617,7 @@ int ext4_mb_try_best_found(struct ext4_allocation_context *ac,
16171617 }
16181618
16191619 ext4_unlock_group (ac -> ac_sb , group );
1620- ext4_mb_release_desc (e4b );
1620+ ext4_mb_unload_buddy (e4b );
16211621
16221622 return 0 ;
16231623}
@@ -1672,7 +1672,7 @@ int ext4_mb_find_by_goal(struct ext4_allocation_context *ac,
16721672 ext4_mb_use_best_found (ac , e4b );
16731673 }
16741674 ext4_unlock_group (ac -> ac_sb , group );
1675- ext4_mb_release_desc (e4b );
1675+ ext4_mb_unload_buddy (e4b );
16761676
16771677 return 0 ;
16781678}
@@ -2042,7 +2042,7 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
20422042 if (!ext4_mb_good_group (ac , group , cr )) {
20432043 /* someone did allocation from this group */
20442044 ext4_unlock_group (sb , group );
2045- ext4_mb_release_desc (& e4b );
2045+ ext4_mb_unload_buddy (& e4b );
20462046 continue ;
20472047 }
20482048
@@ -2056,7 +2056,7 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
20562056 ext4_mb_complex_scan_group (ac , & e4b );
20572057
20582058 ext4_unlock_group (sb , group );
2059- ext4_mb_release_desc (& e4b );
2059+ ext4_mb_unload_buddy (& e4b );
20602060
20612061 if (ac -> ac_status != AC_STATUS_CONTINUE )
20622062 break ;
@@ -2146,7 +2146,7 @@ static int ext4_mb_seq_groups_show(struct seq_file *seq, void *v)
21462146 ext4_lock_group (sb , group );
21472147 memcpy (& sg , ext4_get_group_info (sb , group ), i );
21482148 ext4_unlock_group (sb , group );
2149- ext4_mb_release_desc (& e4b );
2149+ ext4_mb_unload_buddy (& e4b );
21502150
21512151 seq_printf (seq , "#%-5u: %-5u %-5u %-5u [" , group , sg .info .bb_free ,
21522152 sg .info .bb_fragments , sg .info .bb_first_free );
@@ -2566,7 +2566,7 @@ static void release_blocks_on_commit(journal_t *journal, transaction_t *txn)
25662566 }
25672567 ext4_unlock_group (sb , entry -> group );
25682568 kmem_cache_free (ext4_free_ext_cachep , entry );
2569- ext4_mb_release_desc (& e4b );
2569+ ext4_mb_unload_buddy (& e4b );
25702570 }
25712571
25722572 mb_debug (1 , "freed %u blocks in %u structures\n" , count , count2 );
@@ -3695,7 +3695,7 @@ ext4_mb_discard_group_preallocations(struct super_block *sb,
36953695 ext4_unlock_group (sb , group );
36963696 if (ac )
36973697 kmem_cache_free (ext4_ac_cachep , ac );
3698- ext4_mb_release_desc (& e4b );
3698+ ext4_mb_unload_buddy (& e4b );
36993699 put_bh (bitmap_bh );
37003700 return free ;
37013701}
@@ -3799,7 +3799,7 @@ void ext4_discard_preallocations(struct inode *inode)
37993799 if (bitmap_bh == NULL ) {
38003800 ext4_error (sb , "Error reading block bitmap for %u" ,
38013801 group );
3802- ext4_mb_release_desc (& e4b );
3802+ ext4_mb_unload_buddy (& e4b );
38033803 continue ;
38043804 }
38053805
@@ -3808,7 +3808,7 @@ void ext4_discard_preallocations(struct inode *inode)
38083808 ext4_mb_release_inode_pa (& e4b , bitmap_bh , pa , ac );
38093809 ext4_unlock_group (sb , group );
38103810
3811- ext4_mb_release_desc (& e4b );
3811+ ext4_mb_unload_buddy (& e4b );
38123812 put_bh (bitmap_bh );
38133813
38143814 list_del (& pa -> u .pa_tmp_list );
@@ -4072,7 +4072,7 @@ ext4_mb_discard_lg_preallocations(struct super_block *sb,
40724072 ext4_mb_release_group_pa (& e4b , pa , ac );
40734073 ext4_unlock_group (sb , group );
40744074
4075- ext4_mb_release_desc (& e4b );
4075+ ext4_mb_unload_buddy (& e4b );
40764076 list_del (& pa -> u .pa_tmp_list );
40774077 call_rcu (& (pa )-> u .pa_rcu , ext4_mb_pa_callback );
40784078 }
@@ -4608,7 +4608,7 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
46084608 atomic_add (count , & sbi -> s_flex_groups [flex_group ].free_blocks );
46094609 }
46104610
4611- ext4_mb_release_desc (& e4b );
4611+ ext4_mb_unload_buddy (& e4b );
46124612
46134613 freed += count ;
46144614
0 commit comments