Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.1.101 /kernel/sysctl.c

Filename:/kernel/sysctl.c
Lines Added:26
Lines Deleted:16
Also changed in: (Previous) 2.1.100  2.1.99  2.1.92  2.1.91  2.1.90  2.1.89 
(Following) 2.1.106  2.1.115  2.1.117  2.1.118  2.1.124  2.1.127 

Location
[  2.1.101
  [  kernel
     o  sysctl.c

Patch

diff -u --recursive --new-file v2.1.100/linux/kernel/sysctl.c linux/kernel/sysctl.c
--- v2.1.100/linux/kernel/sysctl.c   Thu May  7 22:51:55 1998
+++ linux/kernel/sysctl.c   Fri May  8 17:54:39 1998
@@ -51,6 +51,9 @@
 #ifdef __sparc__
 extern char reboot_command [];
 #endif
+#ifdef __powerpc__
+extern unsigned long htab_reclaim_on, zero_paged_on;
+#endif
 
 static int parse_table(int *, int, void *, size_t *, void *, size_t,
              ctl_table *, void **);
@@ -144,18 +147,6 @@
     0644, NULL, &proc_dostring, &sysctl_string},
    {KERN_DOMAINNAME, "domainname", system_utsname.domainname, 64,
     0644, NULL, &proc_dostring, &sysctl_string},
-   {KERN_NRINODE, "inode-nr", &inodes_stat, 2*sizeof(int),
-    0444, NULL, &proc_dointvec},
-   {KERN_STATINODE, "inode-state", &inodes_stat, 7*sizeof(int),
-    0444, NULL, &proc_dointvec},
-   {KERN_MAXINODE, "inode-max", &max_inodes, sizeof(int),
-    0644, NULL, &proc_dointvec},
-   {KERN_NRFILE, "file-nr", &nr_files, 3*sizeof(int),
-    0444, NULL, &proc_dointvec},
-   {KERN_MAXFILE, "file-max", &max_files, sizeof(int),
-    0644, NULL, &proc_dointvec},
-   {KERN_DENTRY, "dentry-state", &dentry_stat, 6*sizeof(int),
-    0444, NULL, &proc_dointvec},
    {KERN_PANIC, "panic", &panic_timeout, sizeof(int),
     0644, NULL, &proc_dointvec},
 #ifdef CONFIG_BLK_DEV_INITRD
@@ -172,6 +163,12 @@
    {KERN_SPARC_REBOOT, "reboot-cmd", reboot_command,
     256, 0644, NULL, &proc_dostring, &sysctl_string },
 #endif
+#ifdef __powerpc__
+   {KERN_PPC_HTABRECLAIM, "htab-reclaim", &htab_reclaim_on, sizeof(int),
+    0644, NULL, &proc_dointvec},
+   {KERN_PPC_ZEROPAGED, "zero-paged", &zero_paged_on, sizeof(int),
+    0644, NULL, &proc_dointvec},
+#endif
    {KERN_CTLALTDEL, "ctrl-alt-del", &C_A_D, sizeof(int),
     0644, NULL, &proc_dointvec},
    {KERN_PRINTK, "printk", &console_loglevel, 4*sizeof(int),
@@ -181,7 +178,7 @@
     0644, NULL, &proc_dostring, &sysctl_string },
 #endif
 #ifdef CONFIG_CHR_DEV_SG
-   {KERN_NRFILE, "sg-big-buff", &sg_big_buff, sizeof (int),
+   {KERN_SG_BIG_BUFF, "sg-big-buff", &sg_big_buff, sizeof (int),
     0444, NULL, &proc_dointvec},
 #endif
    {0}
@@ -213,6 +210,22 @@
 };
 
 static ctl_table fs_table[] = {
+   {FS_NRINODE, "inode-nr", &inodes_stat, 2*sizeof(int),
+    0444, NULL, &proc_dointvec},
+   {FS_STATINODE, "inode-state", &inodes_stat, 7*sizeof(int),
+    0444, NULL, &proc_dointvec},
+   {FS_MAXINODE, "inode-max", &max_inodes, sizeof(int),
+    0644, NULL, &proc_dointvec},
+   {FS_NRFILE, "file-nr", &nr_files, 3*sizeof(int),
+    0444, NULL, &proc_dointvec},
+   {FS_MAXFILE, "file-max", &max_files, sizeof(int),
+    0644, NULL, &proc_dointvec},
+   {FS_NRDQUOT, "dquot-nr", &nr_dquots, 2*sizeof(int),
+    0444, NULL, &proc_dointvec},
+   {FS_MAXDQUOT, "dquot-max", &max_dquots, sizeof(int),
+    0644, NULL, &proc_dointvec},
+   {FS_DENTRY, "dentry-state", &dentry_stat, 6*sizeof(int),
+    0444, NULL, &proc_dointvec},
    {0}
 };
 
@@ -892,9 +905,6 @@
       if (len == table->maxlen)
          len--;
       ((char *) table->data)[len] = 0;
-#ifdef CONFIG_TRANS_NAMES
-      translations_dirty = 1;
-#endif
    }
    return 0;
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.