summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2026-04-11 10:14:19 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2026-06-05 07:34:55 +0300
commitd60ac70f3f261529a52ac70b514a02651ebd5dc3 (patch)
tree21b24de86cb139cc8b8c6801ba3b02fb36f0ca08 /scripts
parent500590a897d9edadfffaed09f25f67ed7cd1813b (diff)
downloadlinux-d60ac70f3f261529a52ac70b514a02651ebd5dc3.tar.xz
fold lock_for_kill() and __dentry_kill() into common helper
There are two callers of lock_for_kill() and both are followed by the same sequence of actions: * in case of failure, drop ->d_lock, do rcu_read_unlock() and go away * in case of success, do rcu_read_unlock() followed by passing dentry to __dentry_kill(); if the latter returns NULL, go away. All calls of __dentry_kill() are paired with lock_for_kill() now; let's turn that sequence into a new helper (dentry_kill()) and switch to using it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions