fs-move-binfmt_misc-sysctl-to-its-own-file.patch removed from -mm tree
The patch titled
Subject: fs: move binfmt_misc sysctl to its own file
has been removed from the -mm tree. Its filename was
fs-move-binfmt_misc-sysctl-to-its-own-file.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Luis Chamberlain <[email protected]>
Subject: fs: move binfmt_misc sysctl to its own file
kernel/sysctl.c is a kitchen sink where everyone leaves their dirty dishes, this makes it very difficult to maintain.
To help with this maintenance let's start by moving sysctls to places where they actually belong. The proc sysctl maintainers do not want to know what sysctl knobs you wish to add for your own piece of code, we just care about the core logic.
This moves the binfmt_misc sysctl to its own file to help remove clutter from kernel/sysctl.c.
---
fs/binfmt_misc.c | 6 +++++- kernel/sysctl.c | 7 ------- 2 files changed, 5 insertions(+), 8 deletions(-)
fs/binfmt_misc.c renamed from fs/binfmt_misc.c~fs-move-binfmt_misc-sysctl-to-its-own-file +5 -1
@@ -822,7 +822,11 @@ static int __init init_misc_binfmt(void)int err =register_filesystem (&bm_fs_type);if (!err)insert_binfmt (&misc_format); -return err; +if (!register_sysctl_mount_point ("fs/binfmt_misc" )) { +pr_warn ("Failed to create fs/binfmt_misc sysctl mount point" ); +return -ENOMEM ; + } +return 0 ; } static void __exit exit_misc_binfmt(void)
kernel/sysctl.c renamed from kernel/sysctl.c~fs-move-binfmt_misc-sysctl-to-its-own-file +0 -7
@@ -3127,13 +3127,6 @@ static struct ctl_table fs_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_TWO, }, -#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) - { - .procname = "binfmt_misc", - .mode = 0555, - .child = sysctl_mount_point, - }, -#endif { .procname = "pipe-max-size", .data = &pipe_max_size,
_
Patches currently in -mm which might be from [email protected] are