From be5f5b2aff2d59986dd8e7dd7dd531be24c27cb2 Mon Sep 17 00:00:00 2001 From: Stephan Wiesand Date: Fri, 22 Dec 2017 14:17:09 +0100 Subject: [PATCH] Linux: use plain page_cache_alloc Linux 4.15 removes the distinction between "hot" and "cold" cache pages, and no longer provides page_cache_alloc_cold(). Simply use page_cache_alloc() instead, rather than adding yet another test. Change-Id: I34e734223927030f7ff252acb61120366a808ad6 Reviewed-on: https://gerrit.openafs.org/12823 Tested-by: BuildBot Reviewed-by: Marcio Brito Barbosa Tested-by: Marcio Brito Barbosa Reviewed-by: Benjamin Kaduk --- src/afs/LINUX/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index b7e4734409..de49298002 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -2077,7 +2077,7 @@ afs_linux_read_cache(struct file *cachefp, struct page *page, cachepage = find_get_page(cachemapping, pageindex); if (!cachepage) { if (!newpage) - newpage = page_cache_alloc_cold(cachemapping); + newpage = page_cache_alloc(cachemapping); if (!newpage) { code = -ENOMEM; goto out;