]> git.hungrycats.org Git - linux/commitdiff
[PATCH] vm thrashing control tuning CONFIG_SWAP=n build fix
authorHideo Aoki <aoki@sdl.hitachi.co.jp>
Thu, 21 Oct 2004 03:55:50 +0000 (20:55 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Thu, 21 Oct 2004 03:55:50 +0000 (20:55 -0700)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sysctl.c

index fed8d5a8aa626c1845591970e9a4342f0ba6ffe1..e6dc3568a9037ec961523254213c6fde98274cfe 100644 (file)
@@ -783,7 +783,6 @@ static ctl_table vm_table[] = {
                .strategy       = &sysctl_intvec,
                .extra1         = &zero,
        },
-#ifdef CONFIG_SWAP
        {
                .ctl_name       = VM_VFS_CACHE_PRESSURE,
                .procname       = "vfs_cache_pressure",
@@ -806,6 +805,7 @@ static ctl_table vm_table[] = {
                .extra1         = &zero,
        },
 #endif
+#ifdef CONFIG_SWAP
        {
                .ctl_name       = VM_SWAP_TOKEN_TIMEOUT,
                .procname       = "swap_token_timeout",
@@ -815,6 +815,7 @@ static ctl_table vm_table[] = {
                .proc_handler   = &proc_dointvec_jiffies,
                .strategy       = &sysctl_jiffies,
        },
+#endif
        { .ctl_name = 0 }
 };
 
@@ -925,7 +926,6 @@ static ctl_table fs_table[] = {
                .mode           = 0644,
                .proc_handler   = &proc_dointvec,
        },
-#endif
        { .ctl_name = 0 }
 };