]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Use __GFP_HIGH in mpage_writepages()
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:31:20 +0000 (08:31 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:31:20 +0000 (08:31 -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.

fs/mpage.c

index 5f9b624164923d14404e6b5d62aa38565694c05b..5c1cdc5b8c10038bf28a15a1eccca00427500aad 100644 (file)
@@ -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;
        }