Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit c2e5e29f authored by Al Viro's avatar Al Viro
Browse files

to_shrink_list(): call only if refcount is 0


The only thing it does if refcount is not zero is d_lru_del(); no
point, IMO, seeing that plain dput() does nothing of that sort...

Note that 2 of 3 current callers are guaranteed that refcount is 0.

Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5e7a5c8d
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment