]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
struct filename ->refcnt doesn't need to be atomic
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 2 Nov 2025 05:01:47 +0000 (01:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Jan 2026 20:18:07 +0000 (15:18 -0500)
commit741c97fecb6a4160014a76759e9b8c0880fc44f1
tree72bd86a8d2455ae66dc6cc9d3b830bae980da91e
parent9fa3ec84587c5eca7580eafc27eee332bc3a5a0e
struct filename ->refcnt doesn't need to be atomic

... or visible outside of audit, really.  Note that references
held in delayed_filename always have refcount 1, and from the
moment of complete_getname() or equivalent point in getname...()
there won't be any references to struct filename instance left
in places visible to other threads.

Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
include/linux/fs.h
kernel/auditsc.c