diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2026-07-16 10:10:20 -0400 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2026-07-22 23:47:06 -0400 |
| commit | 61e2a90a910cb9ed27ca647895f073af0b640351 (patch) | |
| tree | 2db050d466ad74a89ce2832ae7984b372909ee8c /include | |
| parent | d19d239ada9b7c92d086a1f051b7566538ee0089 (diff) | |
ext4: enable scoped NOFS when starting a handle in nojournal mode
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 <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/jbd2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index b68561187e90..7348fdadc810 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h @@ -513,6 +513,7 @@ struct jbd2_journal_handle unsigned int h_sync: 1; unsigned int h_reserved: 1; unsigned int h_aborted: 1; + unsigned int h_invalid: 1; unsigned int h_type: 8; unsigned int h_line_no: 16; |
