[patch 17/27] Use __GFP_HIGH in mpage_writepages()

Andrew Morton (akpm@zip.com.au)
Thu, 04 Jul 2002 16:54:46 -0700


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;
}

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/