Skip to content

Commit dbc056f

Browse files
committed
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 <[email protected]>
1 parent 38f8af2 commit dbc056f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext2/balloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void ext2_init_block_alloc_info(struct inode *inode)
412412
struct ext2_block_alloc_info *block_i;
413413
struct super_block *sb = inode->i_sb;
414414

415-
block_i = kmalloc(sizeof(*block_i), GFP_NOFS);
415+
block_i = kmalloc(sizeof(*block_i), GFP_KERNEL);
416416
if (block_i) {
417417
struct ext2_reserve_window_node *rsv = &block_i->rsv_window_node;
418418

0 commit comments

Comments
 (0)