]> err.no Git - linux-2.6/commit
[PATCH] sysctl: remove insert_at_head from register_sysctl
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 14 Feb 2007 08:34:09 +0000 (00:34 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:09:59 +0000 (08:09 -0800)
commit0b4d414714f0d2f922d39424b0c5c82ad900a381
tree5079ec59a5622c9cacfe0fce484ba2c4626c406f
parentae836810263509ff7a3c2c021754ce6f66b3fab6
[PATCH] sysctl: remove insert_at_head from register_sysctl

The semantic effect of insert_at_head is that it would allow new registered
sysctl entries to override existing sysctl entries of the same name.  Which is
pain for caching and the proc interface never implemented.

I have done an audit and discovered that none of the current users of
register_sysctl care as (excpet for directories) they do not register
duplicate sysctl entries.

So this patch simply removes the support for overriding existing entries in
the sys_sysctl interface since no one uses it or cares and it makes future
enhancments harder.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Andi Kleen <ak@muc.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Corey Minyard <minyard@acm.org>
Cc: Neil Brown <neilb@suse.de>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jan Kara <jack@ucw.cz>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Cc: David Chinner <dgc@sgi.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
68 files changed:
arch/arm/kernel/isa.c
arch/frv/kernel/pm.c
arch/frv/kernel/sysctl.c
arch/ia64/kernel/crash.c
arch/ia64/kernel/perfmon.c
arch/ia64/sn/kernel/xpc_main.c
arch/mips/au1000/common/power.c
arch/mips/lasat/sysctl.c
arch/powerpc/kernel/idle.c
arch/ppc/kernel/ppc_htab.c
arch/s390/appldata/appldata_base.c
arch/s390/kernel/debug.c
arch/s390/mm/cmm.c
arch/sh64/kernel/traps.c
arch/x86_64/ia32/ia32_binfmt.c
arch/x86_64/kernel/vsyscall.c
arch/x86_64/mm/init.c
drivers/cdrom/cdrom.c
drivers/char/hpet.c
drivers/char/ipmi/ipmi_poweroff.c
drivers/char/rtc.c
drivers/macintosh/mac_hid.c
drivers/md/md.c
drivers/net/wireless/arlan-proc.c
drivers/parport/procfs.c
drivers/scsi/scsi_sysctl.c
fs/coda/sysctl.c
fs/dquot.c
fs/lockd/svc.c
fs/nfs/sysctl.c
fs/ntfs/sysctl.c
fs/ocfs2/cluster/nodemanager.c
fs/xfs/linux-2.6/xfs_sysctl.c
include/linux/sysctl.h
ipc/ipc_sysctl.c
ipc/mqueue.c
kernel/sysctl.c
kernel/utsname_sysctl.c
net/appletalk/sysctl_net_atalk.c
net/ax25/sysctl_net_ax25.c
net/bridge/br_netfilter.c
net/core/neighbour.c
net/dccp/sysctl.c
net/decnet/dn_dev.c
net/decnet/sysctl_net_decnet.c
net/ipv4/devinet.c
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_lblc.c
net/ipv4/ipvs/ip_vs_lblcr.c
net/ipv4/netfilter/ip_conntrack_proto_sctp.c
net/ipv4/netfilter/ip_conntrack_standalone.c
net/ipv4/netfilter/ip_queue.c
net/ipv6/addrconf.c
net/ipv6/netfilter/ip6_queue.c
net/ipv6/sysctl_net_ipv6.c
net/ipx/sysctl_net_ipx.c
net/irda/irsysctl.c
net/llc/sysctl_net_llc.c
net/netfilter/nf_conntrack_standalone.c
net/netfilter/nf_sysctl.c
net/netrom/sysctl_net_netrom.c
net/rose/sysctl_net_rose.c
net/rxrpc/sysctl.c
net/sctp/sysctl.c
net/sunrpc/sysctl.c
net/sunrpc/xprtsock.c
net/unix/sysctl_net_unix.c
net/x25/sysctl_net_x25.c