From: Al Viro Date: Wed, 22 Aug 2012 02:32:06 +0000 (-0400) Subject: new helper: iterate_fd() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~36^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c073f808b22dfae15ef8412b6f7b998644139a;p=pandora-kernel.git new helper: iterate_fd() iterates through the opened files in given descriptor table, calling a supplied function; we stop once non-zero is returned. Callback gets struct file *, descriptor number and const void * argument passed to iterator. It is called with files->file_lock held, so it is not allowed to block. tty_io, netprio_cgroup and selinux flush_unauthorized_files() converted to its use. Signed-off-by: Al Viro --- Reading git-diff-tree failed