Baokun Li 993bf0f4c3 ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
Determine if bb_fragments is 0 instead of determining bb_free to eliminate
the risk of dividing by zero when the block bitmap is corrupted.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240104142040.2835097-6-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2024-01-18 10:50:24 -05:00
..
2023-11-04 09:20:04 -10:00
2023-11-07 12:11:26 -08:00
2024-01-10 11:03:52 -08:00
2023-11-07 12:11:26 -08:00
2023-12-29 11:58:34 -08:00
2024-01-10 09:27:40 -08:00
2024-01-08 11:26:50 -08:00
2023-10-30 09:47:13 -10:00
2024-01-10 16:06:58 -08:00
2023-11-07 12:11:26 -08:00
2023-11-03 22:24:11 +09:00
2024-01-10 10:24:49 -08:00
2023-11-07 12:11:26 -08:00
2024-01-08 11:11:51 -08:00
2024-01-10 10:17:23 -08:00
2023-12-29 11:58:34 -08:00
2023-11-03 15:15:47 -10:00
2024-01-10 10:20:08 -08:00
2024-01-10 10:20:08 -08:00
2023-11-07 12:11:26 -08:00
2024-01-10 10:17:23 -08:00
2023-10-30 09:47:13 -10:00
2024-01-10 10:48:22 -08:00
2024-01-09 12:57:46 -08:00
2023-10-30 09:47:13 -10:00
\n
2023-11-02 08:19:51 -10:00
2024-01-10 08:45:22 -08:00
2024-01-08 11:43:04 -08:00
2023-12-21 13:17:54 +01:00
2023-10-30 19:28:19 -10:00
2023-10-30 19:28:19 -10:00
2023-12-10 17:21:25 -08:00
2023-12-12 14:24:14 +01:00
2023-10-30 09:14:19 -10:00
2024-01-08 11:11:51 -08:00
2023-12-21 13:21:52 +01:00
2024-01-10 09:27:40 -08:00
2024-01-08 11:11:51 -08:00
2024-01-08 10:57:34 -08:00
2024-01-10 10:24:49 -08:00
2023-12-29 11:58:24 -08:00