* [patch 17/27] Use __GFP_HIGH in mpage_writepages()
@ 2002-07-04 23:54 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-07-04 23:54 UTC (permalink / raw)
To: Linus Torvalds; +Cc: lkml
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(-)
--- 2.5.24/fs/mpage.c~mpage_writepage-tryharder Thu Jul 4 16:17:26 2002
+++ 2.5.24-akpm/fs/mpage.c Thu Jul 4 16:22:08 2002
@@ -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;
}
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-04 23:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-04 23:54 [patch 17/27] Use __GFP_HIGH in mpage_writepages() Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.