]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Use scoped memory APIs in ext4_write_begin()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 22 Feb 2022 15:36:28 +0000 (10:36 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 8 May 2022 18:28:19 +0000 (14:28 -0400)
commit5aa9df6691f573479ae1fdcb6f1ba40ba60a9447
tree80a3da3da9610682c57e834047cd0c36f233dc0f
parentd980843792d057293c07d170bc910b4e0e15c9d3
ext4: Use scoped memory APIs in ext4_write_begin()

Instead of setting AOP_FLAG_NOFS, use memalloc_nofs_save() and
memalloc_nofs_restore() to prevent GFP_FS allocations recursing
into the filesystem with a journal already started.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inline.c
fs/ext4/inode.c