diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-09-17 06:36:15 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-09-17 06:36:15 -0700 |
| commit | 6b27052e83de6ca55c64571852588c2cd59e401a (patch) | |
| tree | 6dce6ee536ee8c4350fc3a10ecdee77cc6b1bc39 /include/linux | |
| parent | 1b4623d6a346e8cac9089f9242e12565fde59eff (diff) | |
[PATCH] Add /proc/meminfo:Slab
Display the total slab memory in /proc/meminfo. Handy while we play
with the slab pruning code.
This info is also available via /proc/slabinfo, but I think this
convenience is worth the extra few lines.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/page-flags.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 6475e261f609..5a4208b4651f 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -79,6 +79,7 @@ extern struct page_state { unsigned long nr_page_table_pages; unsigned long nr_reverse_maps; unsigned long nr_mapped; + unsigned long nr_slab; } ____cacheline_aligned_in_smp page_states[NR_CPUS]; extern void get_page_state(struct page_state *ret); |
