]> git.baikalelectronics.ru Git - kernel.git/commit
fs: split __shrink_dcache_sb
authorChristoph Hellwig <hch@infradead.org>
Sun, 10 Oct 2010 09:36:25 +0000 (05:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:26:13 +0000 (21:26 -0400)
commit426d1e83a28c614bffdce660f23f1783468defea
tree18c7574640a8f95106facd56cb03a74b73d60f42
parente7a9f45de8f3b5a118753fae91984f3911d81d6d
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 <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c