shrink_dentry_list(): no need to check that dentry refcount is marked dead
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Oct 2023 17:57:12 +0000 (13:57 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Nov 2023 07:33:41 +0000 (02:33 -0500)
commitcd9f84f35c2eaaf4da7e111021b604662326d8aa
tree2ebdabd15757c783b360add3391cd155309653c4
parent3fcf535626a44e107e2d536a2c43da0fb5bde121
shrink_dentry_list(): no need to check that dentry refcount is marked dead

... we won't see DCACHE_MAY_FREE on anything that is *not* dead
and checking d_flags is just as cheap as checking refcount.

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