summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2002-05-20 21:32:42 -0700
committerChristoph Hellwig <hch@infradead.org>2002-05-20 21:32:42 -0700
commit71e6cd0a2c4e546266167d3e5a403cd4925cdec1 (patch)
treebdcc6bb6c619fd676ebb70fcbe719dacfc3c1693
parent628d1558af6869cfe57895eb58dd90af99b33936 (diff)
[PATCH] buffermem_pages removal (4/5)
This is the most discussion-worthy patch of the series: Change the meaning of si_meminfo->bufferram from "all pages in pagecache backed by block devices" to "all pages in pagecache". In the header/manpage is is documented as "Memory used by buffers", but as the buffercache is gone I think the new meaning fits the intention from pre-pagecache days much better.
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 17ced9e5f903..09d14971c2e6 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -613,7 +613,7 @@ void si_meminfo(struct sysinfo *val)
val->totalram = totalram_pages;
val->sharedram = 0;
val->freeram = nr_free_pages();
- val->bufferram = atomic_read(&buffermem_pages);
+ val->bufferram = get_page_cache_size();
#ifdef CONFIG_HIGHMEM
val->totalhigh = totalhigh_pages;
val->freehigh = nr_free_highpages();