summaryrefslogtreecommitdiff
path: root/include/linux/proc_ns.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-02-18 16:51:23 +0300
committerChristian Brauner <brauner@kernel.org>2024-03-01 14:23:44 +0300
commit1fa08aece42512be072351f482096d5796edf7ca (patch)
tree6ebfa283e0423520423e886bdf0e06c8252d6ec4 /include/linux/proc_ns.h
parent07fd7c329839cf0b8c7766883d830a1a0d12d1dd (diff)
downloadlinux-1fa08aece42512be072351f482096d5796edf7ca.tar.xz
nsfs: convert to path_from_stashed() helper
Use the newly added path_from_stashed() helper for nsfs. Link: https://lore.kernel.org/r/20240218-neufahrzeuge-brauhaus-fb0eb6459771@brauner Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/proc_ns.h')
-rw-r--r--include/linux/proc_ns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h
index 49539bc416ce..5ea470eb4d76 100644
--- a/include/linux/proc_ns.h
+++ b/include/linux/proc_ns.h
@@ -66,7 +66,7 @@ static inline void proc_free_inum(unsigned int inum) {}
static inline int ns_alloc_inum(struct ns_common *ns)
{
- atomic_long_set(&ns->stashed, 0);
+ WRITE_ONCE(ns->stashed, NULL);
return proc_alloc_inum(&ns->inum);
}