<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Alex Zarochentsev &lt;zam@namesys.com&gt;

no, it is not needed now.  the functions which use get_full_page_state()
are not used anywhere else.

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/fs/reiser4/page_cache.c |   66 ----------------------------------------
 25-akpm/fs/reiser4/page_cache.h |    4 --
 2 files changed, 70 deletions(-)

diff -puN fs/reiser4/page_cache.c~reiser4-remove-debug fs/reiser4/page_cache.c
--- 25/fs/reiser4/page_cache.c~reiser4-remove-debug	2004-10-28 01:19:49.846700176 -0700
+++ 25-akpm/fs/reiser4/page_cache.c	2004-10-28 01:19:49.851699416 -0700
@@ -903,72 +903,6 @@ print_page(const char *prefix, struct pa
 	}
 }
 
-reiser4_internal void
-print_page_state(const char *prefix, struct page_state *ps)
-{
-	printk("%i: %s: "
-	       "free: %u, "
-	       "dirty: %lu, "
-	       "writeback: %lu, "
-//	       "pagecache: %lu, "
-//	     "page_table_pages: %lu, "
-//	     "reverse_maps: %lu, "
-	       "mapped: %lu, "
-	       "slab: %lu, "
-//	     "pgpgin: %lu, "
-//	     "pgpgout: %lu, "
-//	     "pswpin: %lu, "
-//	     "pswpout: %lu, "
-//	     "pgalloc: %lu, "
-//	     "pgfree: %lu, "
-//	     "pgactivate: %lu, "
-//	     "pgdeactivate: %lu, "
-//	     "pgfault: %lu, "
-//	     "pgmajfault: %lu, "
-//	     "pgscan: %lu, "
-//	     "pgrefill: %lu, "
-//	     "pgsteal: %lu, "
-	       "kswapd_steal: %lu, "
-//	     "pageoutrun: %lu, "
-//	     "allocstall: %lu
-	       "\n", current-&gt;pid, prefix,
-
-	       nr_free_pages(),
-	       ps-&gt;nr_dirty,
-	       ps-&gt;nr_writeback,
-//	       ps-&gt;nr_pagecache,
-//	     ps-&gt;nr_page_table_pages,
-//	     ps-&gt;nr_reverse_maps,
-	       ps-&gt;nr_mapped,
-	       ps-&gt;nr_slab,
-//	     ps-&gt;pgpgin,
-//	     ps-&gt;pgpgout,
-//	     ps-&gt;pswpin,
-//	     ps-&gt;pswpout,
-//	     ps-&gt;pgalloc,
-//	     ps-&gt;pgfree,
-//	     ps-&gt;pgactivate,
-//	     ps-&gt;pgdeactivate,
-//	     ps-&gt;pgfault,
-//	     ps-&gt;pgmajfault,
-//	     ps-&gt;pgscan,
-//	     ps-&gt;pgrefill,
-//	     ps-&gt;pgsteal,
-	       ps-&gt;kswapd_steal //,
-//	     ps-&gt;pageoutrun,
-//	     ps-&gt;allocstall
-		);
-}
-
-reiser4_internal void
-print_page_stats(const char *prefix)
-{
-	struct page_state ps;
-	get_full_page_state(&amp;ps);
-	print_page_state(prefix, &amp;ps);
-}
-
-
 #endif
 
 /* Make Linus happy.
diff -puN fs/reiser4/page_cache.h~reiser4-remove-debug fs/reiser4/page_cache.h
--- 25/fs/reiser4/page_cache.h~reiser4-remove-debug	2004-10-28 01:19:49.847700024 -0700
+++ 25-akpm/fs/reiser4/page_cache.h	2004-10-28 01:19:49.851699416 -0700
@@ -50,12 +50,8 @@ extern void capture_reiser4_inodes (stru
 
 #if REISER4_DEBUG_OUTPUT
 extern void print_page(const char *prefix, struct page *page);
-extern void print_page_state(const char *prefix, struct page_state *ps);
-extern void print_page_stats(const char *prefix);
 #else
 #define print_page(prf, p) noop
-#define print_page_state(prefix, ps) noop
-#define print_page_stats(prefix) noop
 #endif
 
 /* __REISER4_PAGE_CACHE_H__ */
_
</pre></body></html>