[2.6 patch] mm/vmstat.c: possible cleanups

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: <linux-kernel@...>
Date: Thursday, July 5, 2007 - 7:23 pm

This patch contains the following possible cleanups:
- make the needlessly global setup_vmstat() static
- #if 0 the unused refresh_vm_stats()

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 mm/vmstat.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- linux-2.6.22-rc6-mm1/mm/vmstat.c.old	2007-07-05 16:54:39.000000000 +0200
+++ linux-2.6.22-rc6-mm1/mm/vmstat.c	2007-07-05 16:55:42.000000000 +0200
@@ -353,6 +353,8 @@
 	}
 }
 
+#if 0
+
 static void __refresh_cpu_vm_stats(void *dummy)
 {
 	refresh_cpu_vm_stats(smp_processor_id());
@@ -370,6 +372,8 @@
 }
 EXPORT_SYMBOL(refresh_vm_stats);
 
+#endif  /*  0  */
+
 #endif
 
 #ifdef CONFIG_NUMA
@@ -957,7 +961,7 @@
 static struct notifier_block __cpuinitdata vmstat_notifier =
 	{ &vmstat_cpuup_callback, NULL, 0 };
 
-int __init setup_vmstat(void)
+static int __init setup_vmstat(void)
 {
 	int cpu;
 

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] mm/vmstat.c: possible cleanups, Adrian Bunk, (Thu Jul 5, 7:23 pm)
Re: [2.6 patch] mm/vmstat.c: possible cleanups, Christoph Lameter, (Fri Jul 6, 1:49 pm)
Re: [2.6 patch] mm/vmstat.c: possible cleanups, Adrian Bunk, (Fri Jul 6, 2:13 pm)
Re: [2.6 patch] mm/vmstat.c: possible cleanups, Christoph Lameter, (Fri Jul 6, 3:21 pm)
[2.6 patch] mm/vmstat.c: cleanups, Adrian Bunk, (Mon Jul 9, 10:57 am)
Re: [2.6 patch] mm/vmstat.c: cleanups, Christoph Lameter, (Mon Jul 9, 11:44 am)