From: Eric W. Biederman Date: Wed, 18 Jan 2012 11:15:51 +0000 (-0800) Subject: sysctl: Rewrite proc_sys_readdir in terms of first_entry and next_entry X-Git-Tag: v3.4-rc1~99^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a75ce167c53b41f15088d3c2c7e51c89dc8798a;p=pandora-kernel.git sysctl: Rewrite proc_sys_readdir in terms of first_entry and next_entry Replace sysctl_head_next with first_entry and next_entry. These new iterators operate at the level of sysctl table entries and filter out any sysctl tables that should not be shown. Utilizing two specialized functions instead of a single function removes conditionals for handling awkward special cases that only come up at the beginning of iteration, making the iterators easier to read and understand. Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed