Commit 8326983
ext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal()
Places the logic for checking if the group's block bitmap is corrupt under
the protection of the group lock to avoid allocating blocks from the group
with a corrupted block bitmap.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240104142040.2835097-8-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 4530b36 commit 8326983
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | 2339 | | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2345 | 2343 | | |
2346 | 2344 | | |
2347 | 2345 | | |
| |||
2374 | 2372 | | |
2375 | 2373 | | |
2376 | 2374 | | |
| 2375 | + | |
2377 | 2376 | | |
2378 | 2377 | | |
2379 | 2378 | | |
| |||
0 commit comments