commit | 3049cfe24ef3872ba74f90630356722cf988b80d | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Sun Oct 10 05:36:25 2010 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Oct 25 21:26:13 2010 -0400 |
tree | 18c7574640a8f95106facd56cb03a74b73d60f42 | |
parent | 265ac90230257e9c035e4b0c63a0c11c5336e93c [diff] |
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>