Skip to content

Commit

Permalink
Btrfs: fix gfp flags masking in the compression code
Browse files Browse the repository at this point in the history
GFP_FS must be masked out, NOFS can't be or'd in.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Nick Piggin authored and Chris Mason committed Mar 15, 2010
1 parent 5ff7ba3 commit ef5780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/compression.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
goto next;
}

page = alloc_page(mapping_gfp_mask(mapping) | GFP_NOFS);
page = alloc_page(mapping_gfp_mask(mapping) & ~__GFP_FS);
if (!page)
break;

Expand Down

0 comments on commit ef5780c

Please sign in to comment.