[Devel] [PATCH rh7 4/4] tcache: allow to allocate highmem pages
Vladimir Davydov
vdavydov at parallels.com
Thu Jul 16 02:03:32 PDT 2015
We should use highmem pages for tcache if possible. The code is already
ready for that. On 64 bit architectures this patch introduces no
functional changes.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
mm/tcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/tcache.c b/mm/tcache.c
index 649988148eaa..b078c84f9564 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -780,7 +780,7 @@ static struct page *tcache_alloc_page(void)
{
struct page *page;
- page = alloc_page(TCACHE_GFP_MASK);
+ page = alloc_page(TCACHE_GFP_MASK | __GFP_HIGHMEM);
if (!page)
page = tcache_try_to_reclaim_page();
--
2.1.4
More information about the Devel
mailing list