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)
commit832ee62d992d9b2d599a6dc70ac822dec4557ea4
tree80a3da3da9610682c57e834047cd0c36f233dc0f
parent36d116e99da7e45c8827a157a0a92da0fbbfcaa2
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