]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
select_collect(): ignore dentries on shrink lists if they have positive refcounts
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2026 18:17:52 +0000 (14:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Jun 2026 04:34:55 +0000 (00:34 -0400)
commitf601ede8fd166f8f2c84db427b94f80f1b0cbab1
treecb25410e2aaddb83eddfe4ed2d4a896bcc2269ac
parent87e801e1678342fc23b1eb92c0eecedf5dca79cb
select_collect(): ignore dentries on shrink lists if they have positive refcounts

If all dentries we find have positive refcounts and some happen
to be on shrink lists, there's no point trying to steal them in the
select_collect2() phase - we won't be able to evict any of them.  Busy on
shrink lists is still busy...

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