Skip to content
Commit 9f0eac07 authored by Li zeming's avatar Li zeming Committed by David Sterba
Browse files

btrfs: allocate btrfs_io_context without GFP_NOFAIL



The __GFP_NOFAIL flag could loop indefinitely when allocation memory in
alloc_btrfs_io_context. The callers starting from __btrfs_map_block
already handle errors so it's safe to drop the flag.

Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent cb3e217b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment