Baokun Li c9b528c357 ext4: regenerate buddy after block freeing failed if under fc replay
This mostly reverts commit 6bd97bf273bd ("ext4: remove redundant
mb_regenerate_buddy()") and reintroduces mb_regenerate_buddy(). Based on
code in mb_free_blocks(), fast commit replay can end up marking as free
blocks that are already marked as such. This causes corruption of the
buddy bitmap so we need to regenerate it in that case.

Reported-by: Jan Kara <jack@suse.cz>
Fixes: 6bd97bf273bd ("ext4: remove redundant mb_regenerate_buddy()")
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240104142040.2835097-4-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