Commit ef5780c0 authored by Nick Piggin's avatar Nick Piggin Committed by Chris Mason

Btrfs: fix gfp flags masking in the compression code

GFP_FS must be masked out, NOFS can't be or'd in.
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5ff7ba3a
...@@ -478,7 +478,7 @@ static noinline int add_ra_bio_pages(struct inode *inode, ...@@ -478,7 +478,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
goto next; goto next;
} }
page = alloc_page(mapping_gfp_mask(mapping) | GFP_NOFS); page = alloc_page(mapping_gfp_mask(mapping) & ~__GFP_FS);
if (!page) if (!page)
break; break;
......
Markdown is supported
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