ext2: Drop GFP_NOFS allocation from ext2_init_block_alloc_info()
authorJan Kara <jack@suse.cz>
Tue, 9 Jan 2024 11:13:14 +0000 (12:13 +0100)
committerJan Kara <jack@suse.cz>
Tue, 23 Jan 2024 18:21:10 +0000 (19:21 +0100)
commitdbc056f83b6711f6361bb0831bea4654b8d9e892
tree77eb2da75318510dace9950b93af4b160fd47a1c
parent38f8af2a7191e5da21c557210d810c6d0d34f6c4
ext2: Drop GFP_NOFS allocation from ext2_init_block_alloc_info()

The allocation happens under inode->i_rwsem and
EXT2_I(inode)->i_truncate_mutex. Neither of them is acquired during
direct fs reclaim so the allocation can be changed to GFP_KERNEL.

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