]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:51:53 +0000 (20:51 -0700)
commitc214cb82cdc744225d85899fc138251527f75fff
tree5d3ecd73658e772200364e7a65687994eb5c557a
parentcb55ed7f0759fdebffd52742b7b6baf2ae6824d6
don't remove from shrink list in select_collect()

commit fe91522a7ba82ca1a51b07e19954b3825e4aaa22 upstream.

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>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/dcache.c