lkml.org 
[lkml]   [2004]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] memory hotremoval for linux-2.6.7 [7/16]
From

$Id: va-shmem.patch,v 1.5 2004/04/14 06:36:05 iwamoto Exp $

--- linux-2.6.5.ORG/mm/shmem.c Fri Apr 2 14:05:11 2032
+++ linux-2.6.5/mm/shmem.c Fri Apr 2 14:43:37 2032
@@ -80,7 +80,13 @@ static inline struct page *shmem_dir_all
* BLOCKS_PER_PAGE on indirect pages, assume PAGE_CACHE_SIZE:
* might be reconsidered if it ever diverges from PAGE_SIZE.
*/
+#ifdef CONFIG_MEMHOTPLUG
+ return alloc_pages((gfp_mask & GFP_ZONEMASK) == __GFP_HOTREMOVABLE ?
+ (gfp_mask & ~GFP_ZONEMASK) | __GFP_HIGHMEM : gfp_mask,
+ PAGE_CACHE_SHIFT-PAGE_SHIFT);
+#else
return alloc_pages(gfp_mask, PAGE_CACHE_SHIFT-PAGE_SHIFT);
+#endif
}

static inline void shmem_dir_free(struct page *page)
-
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/
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.056 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site