File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2336,12 +2336,10 @@ int ext4_mb_find_by_goal(struct ext4_allocation_context *ac,
2336
2336
if (err )
2337
2337
return err ;
2338
2338
2339
- if (unlikely (EXT4_MB_GRP_BBITMAP_CORRUPT (e4b -> bd_info ))) {
2340
- ext4_mb_unload_buddy (e4b );
2341
- return 0 ;
2342
- }
2343
-
2344
2339
ext4_lock_group (ac -> ac_sb , group );
2340
+ if (unlikely (EXT4_MB_GRP_BBITMAP_CORRUPT (e4b -> bd_info )))
2341
+ goto out ;
2342
+
2345
2343
max = mb_find_extent (e4b , ac -> ac_g_ex .fe_start ,
2346
2344
ac -> ac_g_ex .fe_len , & ex );
2347
2345
ex .fe_logical = 0xDEADFA11 ; /* debug value */
@@ -2374,6 +2372,7 @@ int ext4_mb_find_by_goal(struct ext4_allocation_context *ac,
2374
2372
ac -> ac_b_ex = ex ;
2375
2373
ext4_mb_use_best_found (ac , e4b );
2376
2374
}
2375
+ out :
2377
2376
ext4_unlock_group (ac -> ac_sb , group );
2378
2377
ext4_mb_unload_buddy (e4b );
2379
2378
You can’t perform that action at this time.
0 commit comments