diff options
| author | Christoph Hellwig <hch@infradead.org> | 2002-05-20 21:32:42 -0700 |
|---|---|---|
| committer | Christoph Hellwig <hch@infradead.org> | 2002-05-20 21:32:42 -0700 |
| commit | 71e6cd0a2c4e546266167d3e5a403cd4925cdec1 (patch) | |
| tree | bdcc6bb6c619fd676ebb70fcbe719dacfc3c1693 | |
| parent | 628d1558af6869cfe57895eb58dd90af99b33936 (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.c | 2 |
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(); |
