History

kernel/do_mount_initrd: move real_root_dev sysctls 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. 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.

tangmeng committed 4 years ago

Commit d772cc21 parent 11866183 files · +21 −12Browse files

Showing the changes to kernel (1 of 3 files). Show all

Unified · Split

kernel/sysctl.c+0−9
@@ -1693,15 +1693,6 @@ static struct ctl_table kern_table[] = { · 1692 unmodified lines
16931693 .mode = 0644,
16941694 .proc_handler = sysctl_latencytop,
16951695 },
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− },
17051696 #endif
17061697 {
17071698 .procname = "print-fatal-signals",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t