summaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
authorEric W. Biederman2012-01-10 07:19:13 +0100
committerEric W. Biederman2012-01-25 01:37:55 +0100
commit97324cd804b7b9fb6044e114329335db79810425 (patch)
treeffebd82bb36069d38b9063328920f39434eb5155 /fs/proc/proc_sysctl.c
parentsysctl: Make the directories have nlink == 1 (diff)
downloadkernel-qcow2-linux-97324cd804b7b9fb6044e114329335db79810425.tar.gz
kernel-qcow2-linux-97324cd804b7b9fb6044e114329335db79810425.tar.xz
kernel-qcow2-linux-97324cd804b7b9fb6044e114329335db79810425.zip
sysctl: Implement retire_sysctl_set
This adds a small helper retire_sysctl_set to remove the intimate knowledge about the how a sysctl_set is implemented from net/sysct_net.c Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r--fs/proc/proc_sysctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index f6aa75111b41..9d8223cd3655 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -1080,6 +1080,10 @@ void setup_sysctl_set(struct ctl_table_set *p,
p->is_seen = is_seen;
}
+void retire_sysctl_set(struct ctl_table_set *set)
+{
+ WARN_ON(!list_empty(&set->list));
+}
int __init proc_sys_init(void)
{