mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net> Tested-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
443dd5367e
commit
be5f5b2aff
@ -2077,7 +2077,7 @@ afs_linux_read_cache(struct file *cachefp, struct page *page,
|
|||||||
cachepage = find_get_page(cachemapping, pageindex);
|
cachepage = find_get_page(cachemapping, pageindex);
|
||||||
if (!cachepage) {
|
if (!cachepage) {
|
||||||
if (!newpage)
|
if (!newpage)
|
||||||
newpage = page_cache_alloc_cold(cachemapping);
|
newpage = page_cache_alloc(cachemapping);
|
||||||
if (!newpage) {
|
if (!newpage) {
|
||||||
code = -ENOMEM;
|
code = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user