]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
d_prune_aliases(): make sure to skip NORCU aliases
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 May 2026 06:49:20 +0000 (02:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Jun 2026 04:34:55 +0000 (00:34 -0400)
commitb9c505cbf4acd6f9fa5ebe183f434b72ac3199f7
tree6b9cae55fb4bd812740c0c02c698a5cd472cac86
parent67132b5e5de8a01493ddbb217e936415ca4e09af
d_prune_aliases(): make sure to skip NORCU aliases

Either they are busy (in which case they won't be moved to shrink
list anyway) or they have a zero refcount, in which case we really
shouldn't mess with them - whoever had dropped the refcount to
zero is on the way to evicting and freeing them.

That way we are guaranteed that only the thread that has dropped
refcount of NORCU dentry to zero might call lock_for_kill() and
__dentry_kill() for those.

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