diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-05-15 23:57:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-16 21:19:15 -0700 |
commit | 43c0f3d25c602dc96b201ed81ffda0bc600ff969 (patch) | |
tree | 88ecad9eda4797693a97e0bcdf7ced13be99f3bd | |
parent | 8382d2b9a7205fe1fb262f59237715a40c911880 (diff) | |
download | kernel_samsung_espresso10-43c0f3d25c602dc96b201ed81ffda0bc600ff969.zip kernel_samsung_espresso10-43c0f3d25c602dc96b201ed81ffda0bc600ff969.tar.gz kernel_samsung_espresso10-43c0f3d25c602dc96b201ed81ffda0bc600ff969.tar.bz2 |
Fix: find_or_create_page skips cpuset memory spreading.
We call alloc_page where we should be calling __page_cache_alloc.
__page_cache_alloc performs cpuset memory spreading. alloc_page does not.
There is no reason that pages allocated via find_or_create should be
exempt.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/filemap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 7b48b2a..edb1b0b 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -670,7 +670,8 @@ repeat: page = find_lock_page(mapping, index); if (!page) { if (!cached_page) { - cached_page = alloc_page(gfp_mask); + cached_page = + __page_cache_alloc(gfp_mask); if (!cached_page) return NULL; } |