ext2: Drop GFP_NOFS use in ext2_get_blocks()
authorJan Kara <jack@suse.cz>
Tue, 9 Jan 2024 11:15:43 +0000 (12:15 +0100)
committerJan Kara <jack@suse.cz>
Tue, 23 Jan 2024 18:21:10 +0000 (19:21 +0100)
commit36975616ea5837955ce9bbe84095680c940fe025
treec994eb8bc8fd6a1c4128241fbd8255c22c6e9bd6
parentdbc056f83b6711f6361bb0831bea4654b8d9e892
ext2: Drop GFP_NOFS use in ext2_get_blocks()

ext2_get_blocks() calls sb_issue_zeroout() with GFP_NOFS flag. However
the call is performed under inode->i_rwsem and
EXT2_I(inode)->i_truncate_mutex neither of which is acquired during
direct fs reclaim. So it is safe to change the gfp mask to GFP_KERNEL.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c