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: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Nick Piggin 2010-03-15 11:05:29 -04:00 committed by Chris Mason
parent 5ff7ba3a79
commit ef5780c018

View File

@ -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;