Skip to content

Commit 3697561

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext2/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static int ext2_get_blocks(struct inode *inode,
754754
*/
755755
err = sb_issue_zeroout(inode->i_sb,
756756
le32_to_cpu(chain[depth-1].key), count,
757-
GFP_NOFS);
757+
GFP_KERNEL);
758758
if (err) {
759759
mutex_unlock(&ei->truncate_mutex);
760760
goto cleanup;

0 commit comments

Comments
 (0)