]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9171ae82b498e8c5624c0c67c53c7ef1df6b7733
treec0676a69fe25019e6aaa2f676740e495ec8c1b1d
parentfef7090812bffb2b0bde51635f19d41dae307cb0
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