diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-26 02:31:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:48:51 -0400 |
commit | 972d1a7b140569084439a81265a0f15b74e924e0 (patch) | |
tree | e86e676e407503ef3d98020a88bb925235f11434 /mm/page_alloc.c | |
parent | 8417bba4b151346ed475fcc923693c9e3be89063 (diff) |
[PATCH] ZVC: Support NR_SLAB_RECLAIMABLE / NR_SLAB_UNRECLAIMABLE
Remove the atomic counter for slab_reclaim_pages and replace the counter
and NR_SLAB with two ZVC counter that account for unreclaimable and
reclaimable slab pages: NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE.
Change the check in vmscan.c to refer to to NR_SLAB_RECLAIMABLE. The
intend seems to be to check for slab pages that could be freed.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5da6bc4e0a6b..47e98423b30d 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1304,7 +1304,8 @@ void show_free_areas(void) | |||
1304 | global_page_state(NR_WRITEBACK), | 1304 | global_page_state(NR_WRITEBACK), |
1305 | global_page_state(NR_UNSTABLE_NFS), | 1305 | global_page_state(NR_UNSTABLE_NFS), |
1306 | nr_free_pages(), | 1306 | nr_free_pages(), |
1307 | global_page_state(NR_SLAB), | 1307 | global_page_state(NR_SLAB_RECLAIMABLE) + |
1308 | global_page_state(NR_SLAB_UNRECLAIMABLE), | ||
1308 | global_page_state(NR_FILE_MAPPED), | 1309 | global_page_state(NR_FILE_MAPPED), |
1309 | global_page_state(NR_PAGETABLE)); | 1310 | global_page_state(NR_PAGETABLE)); |
1310 | 1311 | ||