Skip to content

Commit 0e03036

Browse files
ebiedermLinus Torvalds
authored andcommitted
[PATCH] sysctl: register the ocfs2 sysctl numbers
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 <[email protected]> Acked-by: Mark Fasheh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4ed075e commit 0e03036

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fs/ocfs2/cluster/nodemanager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static ctl_table ocfs2_nm_table[] = {
5555

5656
static ctl_table ocfs2_mod_table[] = {
5757
{
58-
.ctl_name = KERN_OCFS2_NM,
58+
.ctl_name = FS_OCFS2_NM,
5959
.procname = "nm",
6060
.data = NULL,
6161
.maxlen = 0,
@@ -67,7 +67,7 @@ static ctl_table ocfs2_mod_table[] = {
6767

6868
static ctl_table ocfs2_kern_table[] = {
6969
{
70-
.ctl_name = KERN_OCFS2,
70+
.ctl_name = FS_OCFS2,
7171
.procname = "ocfs2",
7272
.data = NULL,
7373
.maxlen = 0,

fs/ocfs2/cluster/nodemanager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
#include <linux/configfs.h>
3434
#include <linux/rbtree.h>
3535

36-
#define KERN_OCFS2 988
37-
#define KERN_OCFS2_NM 1
36+
#define FS_OCFS2_NM 1
3837

3938
const char *o2nm_get_hb_ctl_path(void);
4039

include/linux/sysctl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ enum
814814
FS_AIO_NR=18, /* current system-wide number of aio requests */
815815
FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */
816816
FS_INOTIFY=20, /* inotify submenu */
817+
FS_OCFS2=988, /* ocfs2 */
817818
};
818819

819820
/* /proc/sys/fs/quota/ */

0 commit comments

Comments
 (0)