diff options
author | Christian Brauner <brauner@kernel.org> | 2024-02-18 14:51:23 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-03-01 12:23:44 +0100 |
commit | 1fa08aece42512be072351f482096d5796edf7ca (patch) | |
tree | 6ebfa283e0423520423e886bdf0e06c8252d6ec4 /include/linux/proc_ns.h | |
parent | 07fd7c329839cf0b8c7766883d830a1a0d12d1dd (diff) |
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.h | 2 |
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); } |