From: Eric W. Biederman Date: Fri, 3 Apr 2009 07:09:33 +0000 (-0700) Subject: sysctl: Refactor the binary sysctl handling to remove duplicate code X-Git-Tag: v2.6.33-rc1~392^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2830b68361a9f58354ad043c6d85043ea917f907;p=pandora-kernel.git sysctl: Refactor the binary sysctl handling to remove duplicate code Read in the binary sysctl path once, instead of reread it from user space each time the code needs to access a path element. The deprecated sysctl warning is moved to do_sysctl so that the compat_sysctl entries syscalls will also warn. The return of -ENOSYS when !CONFIG_SYSCTL_SYSCALL is moved to binary_sysctl. Always leaving a do_sysctl available that handles !CONFIG_SYSCTL_SYSCALL and printing the deprecated sysctl warning allows for a single defitition of the sysctl syscall. Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed