patch-2.2.0-pre7 linux/fs/proc/array.c
Next file: linux/fs/proc/root.c
Previous file: linux/fs/nls/Config.in
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Fri Jan 8 22:54:17 1999
- Orig file:
v2.2.0-pre6/linux/fs/proc/array.c
- Orig date:
Thu Jan 7 15:11:40 1999
diff -u --recursive --new-file v2.2.0-pre6/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -60,7 +60,6 @@
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/swap.h>
-#include <linux/swapctl.h>
#include <linux/slab.h>
#include <linux/smp.h>
#include <linux/signal.h>
@@ -372,28 +371,6 @@
i.freeswap >> 10);
}
-static int get_swapstats(char * buffer)
-{
- unsigned long *w = swapstats.kswap_wakeups;
-
- return sprintf(buffer,
- "ProcFreeTry: %8lu\n"
- "ProcFreeSucc: %8lu\n"
- "ProcShrinkTry: %8lu\n"
- "ProcShrinkSucc: %8lu\n"
- "KswapFreeTry: %8lu\n"
- "KswapFreeSucc: %8lu\n"
- "KswapWakeups: %8lu %lu %lu %lu\n",
- swapstats.gfp_freepage_attempts,
- swapstats.gfp_freepage_successes,
- swapstats.gfp_shrink_attempts,
- swapstats.gfp_shrink_successes,
- swapstats.kswap_freepage_attempts,
- swapstats.kswap_freepage_successes,
- w[0], w[1], w[2], w[3]
- );
-}
-
static int get_version(char * buffer)
{
extern char *linux_banner;
@@ -1279,9 +1256,6 @@
case PROC_MEMINFO:
return get_meminfo(page);
-
- case PROC_SWAPSTATS:
- return get_swapstats(page);
#ifdef CONFIG_PCI_OLD_PROC
case PROC_PCI:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov