mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
38f8af2a71
commit
dbc056f83b
@ -412,7 +412,7 @@ void ext2_init_block_alloc_info(struct inode *inode)
|
||||
struct ext2_block_alloc_info *block_i;
|
||||
struct super_block *sb = inode->i_sb;
|
||||
|
||||
block_i = kmalloc(sizeof(*block_i), GFP_NOFS);
|
||||
block_i = kmalloc(sizeof(*block_i), GFP_KERNEL);
|
||||
if (block_i) {
|
||||
struct ext2_reserve_window_node *rsv = &block_i->rsv_window_node;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user