diff mbox

btrfs: fix gfp flags masking

Message ID 20100315150016.GC2869@laptop (mailing list archive)
State Accepted
Headers show

Commit Message

Nick Piggin March 15, 2010, 3 p.m. UTC
None
diff mbox

Patch

Index: linux-2.6/fs/btrfs/compression.c
===================================================================
--- linux-2.6.orig/fs/btrfs/compression.c
+++ linux-2.6/fs/btrfs/compression.c
@@ -478,7 +478,7 @@  static noinline int add_ra_bio_pages(str
 			goto next;
 		}
 
-		page = alloc_page(mapping_gfp_mask(mapping) | GFP_NOFS);
+		page = alloc_page(mapping_gfp_mask(mapping) & ~__GFP_FS);
 		if (!page)
 			break;