[Devel] [PATCH RHEL7 COMMIT] tcache: allow to allocate highmem pages

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jul 17 06:53:17 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.25
------>
commit f8673226e5a5eb90f9ced77ff273450249fa70e8
Author: Vladimir Davydov <vdavydov at parallels.com>
Date:   Fri Jul 17 17:53:17 2015 +0400

    tcache: allow to allocate highmem pages
    
    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>
    Reviewed-by: Kirill Tkhai <ktkhai at odin.com>
---
 mm/tcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/tcache.c b/mm/tcache.c
index 6499881..b078c84 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();
 



More information about the Devel mailing list