Re: [PATCH 1/2] ext4: enable scoped NOFS when starting a handle in nojournal mode
Andreas Dilger <[email protected]>
| Newsgroups | org.kernel.vger.linux-ext4 |
|---|---|
| Message-ID | <[email protected]> |
On Jul 21, 2026, at 08:01, Theodore Ts'o <[email protected]> wrote: > > The jbd2 layer enables NOFS mode using memalloc_nofs_{save,restore}() > while a handle is active. We need to do the same in nojournal mode so > that it is safe to remove GFP_NOFS flags while a jbd2 handle is > active. > > This will require that we actually allocate a real handle, but with an > h_invalid flag set, so there is a place to put the saved memalloc > context. > > Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Andreas Dilger <[email protected] <mailto:[email protected]>> Cheers, Andreas