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. All filesystem syctls now get reviewed by fs folks. This commit follows the commit of fs, move the real_root_dev sysctl to its own file, kernel/do_mount_initrd.c.
Showing the changes to kernel (1 of 3 files). Show all
Unified · Split
| @@ -1693,15 +1693,6 @@ static struct ctl_table kern_table[] = { · 1692 unmodified lines | |||
| 1693 | .mode = 0644, | 1693 | .mode = 0644, |
| 1694 | .proc_handler = sysctl_latencytop, | 1694 | .proc_handler = sysctl_latencytop, |
| 1695 | }, | 1695 | }, |
| 1696 | #endif | ||
| 1697 | #ifdef CONFIG_BLK_DEV_INITRD | ||
| 1698 | { | ||
| 1699 | .procname = "real-root-dev", | ||
| 1700 | .data = &real_root_dev, | ||
| 1701 | .maxlen = sizeof(int), | ||
| 1702 | .mode = 0644, | ||
| 1703 | .proc_handler = proc_dointvec, | ||
| 1704 | }, | ||
| 1705 | #endif | 1696 | #endif |
| 1706 | { | 1697 | { |
| 1707 | .procname = "print-fatal-signals", | 1698 | .procname = "print-fatal-signals", |