]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] sysctl: register the ocfs2 sysctl numbers
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 14 Feb 2007 08:33:57 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:58 +0000 (08:09 -0800)
ocfs2 was did not have the binary number it uses under CTL_FS registered in
sysctl.h.  Register it to avoid future conflicts, and change the name of the
definition to be in line with the rest of the sysctl numbers.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/nodemanager.c
fs/ocfs2/cluster/nodemanager.h
include/linux/sysctl.h

index b17333a0606b55cf641ae90c3997918e7ef64992..df763c7fd08327ebf3b0c6fb747b3842d14788be 100644 (file)
@@ -55,7 +55,7 @@ static ctl_table ocfs2_nm_table[] = {
 
 static ctl_table ocfs2_mod_table[] = {
        {
-               .ctl_name       = KERN_OCFS2_NM,
+               .ctl_name       = FS_OCFS2_NM,
                .procname       = "nm",
                .data           = NULL,
                .maxlen         = 0,
@@ -67,7 +67,7 @@ static ctl_table ocfs2_mod_table[] = {
 
 static ctl_table ocfs2_kern_table[] = {
        {
-               .ctl_name       = KERN_OCFS2,
+               .ctl_name       = FS_OCFS2,
                .procname       = "ocfs2",
                .data           = NULL,
                .maxlen         = 0,
index 8fb23cacc2f5f15308b7288321a503eb5322fa0d..070522138ae26c1b10f0f50683a48b5c53f5bf8e 100644 (file)
@@ -33,8 +33,7 @@
 #include <linux/configfs.h>
 #include <linux/rbtree.h>
 
-#define KERN_OCFS2             988
-#define KERN_OCFS2_NM          1
+#define FS_OCFS2_NM            1
 
 const char *o2nm_get_hb_ctl_path(void);
 
index 2eb3729716072c4a4edd5eaeac1b931d34fe885a..5b8af9069797fe1ea209940ceff433ff7fd0019c 100644 (file)
@@ -814,6 +814,7 @@ enum
        FS_AIO_NR=18,   /* current system-wide number of aio requests */
        FS_AIO_MAX_NR=19,       /* system-wide maximum number of aio requests */
        FS_INOTIFY=20,  /* inotify submenu */
+       FS_OCFS2=988,   /* ocfs2 */
 };
 
 /* /proc/sys/fs/quota/ */