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 /fs/jbd2 | |
| parent | d19d239ada9b7c92d086a1f051b7566538ee0089 (diff) | |
| download | linux-next-61e2a90a910cb9ed27ca647895f073af0b640351.tar.gz linux-next-61e2a90a910cb9ed27ca647895f073af0b640351.zip | |
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 'fs/jbd2')
| -rw-r--r-- | fs/jbd2/journal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 09efa337649e..00f5a98f3d4f 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -94,6 +94,7 @@ EXPORT_SYMBOL(jbd2_journal_init_jbd_inode); EXPORT_SYMBOL(jbd2_journal_release_jbd_inode); EXPORT_SYMBOL(jbd2_journal_begin_ordered_truncate); EXPORT_SYMBOL(jbd2_inode_cache); +EXPORT_SYMBOL(jbd2_handle_cache); #ifdef CONFIG_JBD2_DEBUG void __jbd2_debug(int level, const char *file, const char *func, |
