Skip to contentSkip to conversation

Use __GFP_HIGH in mpage_writepages()

PATCH In review Andrew Morton 1 participant 1 message Jul 4, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 17/27 Use __GFP_HIGH in mpage_writepages()

In mpage_writepage(), use __GFP_HIGH when allocating the BIO: writeback is a memory reclaim function and is entitle to dip into the page reserves to get its IO underway.

 mpage.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/mpage.c renamed from fs/mpage.c~mpage_writepage-tryharder +1 -1
@@ -431,7 +431,7 @@ page_is_mapped:
 		unsigned nr_bvecs = MPAGE_BIO_MAX_SIZE / PAGE_CACHE_SIZE;
 
 		bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9),
-					nr_bvecs, GFP_NOFS);
+					nr_bvecs, GFP_NOFS|__GFP_HIGH);
 		if (bio == NULL)
 			goto confused;
 	}

-