From: Christoph Hellwig Date: Sun, 10 Oct 2010 09:36:25 +0000 (-0400) Subject: fs: split __shrink_dcache_sb X-Git-Tag: v2.6.37-rc1~94^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3049cfe24ef3872ba74f90630356722cf988b80d;p=pandora-kernel.git fs: split __shrink_dcache_sb Currently __shrink_dcache_sb has an extremly awkward calling convention because it tries to please very different callers. Split out the main loop into a shrink_dentry_list helper, which gets called directly from shrink_dcache_sb for the cases where all dentries need to be pruned, or from __shrink_dcache_sb for pruning only a certain number of dentries. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed