OSDN Git Service

btrfs: allocate btrfs_io_context without GFP_NOFAIL
authorLi zeming <zeming@nfschina.com>
Wed, 26 Oct 2022 01:36:11 +0000 (09:36 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:57 +0000 (18:00 +0100)
commit9f0eac070d23405f18e7a84820bc3d59b1415bec
treedbef106734cbd1bf5af32fa612fc32ea6399bc63
parentcb3e217bdb39e390f8e64af519acb02af336b53d
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: Li zeming <zeming@nfschina.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c