]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/dcache.c
don't remove from shrink list in select_collect()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 3 May 2014 04:02:25 +0000 (00:02 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 3 May 2014 20:45:06 +0000 (16:45 -0400)
commitfe91522a7ba82ca1a51b07e19954b3825e4aaa22
treec0676a69fe25019e6aaa2f676740e495ec8c1b1d
parent41edf278fc2f042f4e22a12ed87d19c5201210e1
don't remove from shrink list in select_collect()

If we find something already on a shrink list, just increment
data->found and do nothing else.  Loops in shrink_dcache_parent() and
check_submounts_and_drop() will do the right thing - everything we
did put into our list will be evicted and if there had been nothing,
but data->found got non-zero, well, we have somebody else shrinking
those guys; just try again.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c