diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-04-29 23:53:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-29 23:53:41 -0700 |
| commit | 411973b4db28fa3b2a97f44aa4897efe173a0b06 (patch) | |
| tree | 67c54923e89721208997dae7588a50e5a50be79a /mm/page_alloc.c | |
| parent | 8dcf47bd871737b9694a2943d5068563e4c3a49f (diff) | |
[PATCH] remove show_buffers()
Remove show_buffers(). It really has nothing to show any more. just
buffermem_pages() - move that out into the callers.
There's a lot of duplication in this code. better approach would be to
remove all the duplicated code out in the architectures and implement
generic show_memory_state(). Later.
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 18de577ec74e..14998851f31e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -562,6 +562,11 @@ unsigned int nr_free_highpages (void) } #endif +unsigned long nr_buffermem_pages(void) +{ + return atomic_read(&buffermem_pages); +} + /* * Accumulate the page_state information across all CPUs. * The result is unavoidably approximate - it can change |
