Skip to content

Commit

Permalink
[PATCH] sysctl: register the ocfs2 sysctl numbers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Feb 14, 2007
1 parent 4ed075e commit 0e03036
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/ocfs2/cluster/nodemanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions fs/ocfs2/cluster/nodemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/ */
Expand Down

0 comments on commit 0e03036

Please sign in to comment.