Messages in this thread Patch in this message | | | Date | Wed, 14 Jul 2004 23:04:37 +0900 (JST) | Subject | [PATCH] memory hotremoval for linux-2.6.7 [7/16] | From | Hirokazu Takahashi <> |
| |
$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/
| |