From: Eric W. Biederman Date: Tue, 10 Jan 2012 05:42:02 +0000 (-0800) Subject: sysctl: Rewrite proc_sys_lookup introducing find_entry and lookup_entry. X-Git-Tag: v3.4-rc1~99^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076c3eed2c31773200b082568957fd8852ae93d7;p=pandora-kernel.git sysctl: Rewrite proc_sys_lookup introducing find_entry and lookup_entry. Replace the helpers that proc_sys_lookup uses with helpers that work in terms of an entire sysctl directory. This is worse for sysctl_lock hold times but it is much better for code clarity and the code cleanups to come. find_in_table is no longer needed so it is removed. find_entry a general helper to find entries in a directory is added. lookup_entry is a simple wrapper around find_entry that takes the sysctl_lock increases the use count if an entry is found and drops the sysctl_lock. Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed