Commit a263b647 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] 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.
parent 371151c9
......@@ -431,7 +431,7 @@ mpage_writepage(struct bio *bio, struct page *page, get_block_t get_block,
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;
}
......
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