Re: [PATCH] jbd2: Make b_frozen_data allocation always succeed

From: Theodore Ts'o
Date: Thu Nov 14 2024 - 08:56:06 EST



On Sat, 12 Oct 2024 16:55:30 +0800, Zhihao Cheng wrote:
> The b_frozen_data allocation should not be failed during journal
> committing process, otherwise jbd2 will abort.
> Since commit 490c1b444ce653d("jbd2: do not fail journal because of
> frozen_buffer allocation failure") already added '__GFP_NOFAIL' flag
> in do_get_write_access(), just add '__GFP_NOFAIL' flag for all allocations
> in jbd2_journal_write_metadata_buffer(), like 'new_bh' allocation does.
> Besides, remove all error handling branches for do_get_write_access().
>
> [...]

Applied, thanks!

[1/1] jbd2: Make b_frozen_data allocation always succeed
commit: abe1ac7ca84236513a3d8ede02cc47584437f24f

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>