mm/page_alloc: remove nr_free_pagecache_pages()

nr_free_pagecache_pages() isn't used outside page_alloc.c anymore - and
the name does not really help to understand what's going on.  Let's
open-code it instead and add a comment.

Signed-off-by: David Hildenbrand <>
Signed-off-by: Andrew Morton <>
Reviewed-by: Wei Yang <>
Reviewed-by: Pankaj Gupta <>
Reviewed-by: Mike Rapoport <>
Acked-by: Michal Hocko <>
Cc: Johannes Weiner <>
Cc: Minchan Kim <>
Cc: Huang Ying <>
Signed-off-by: Linus Torvalds <>
2 files changed