diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-09-18 13:11:50 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-09-19 17:22:37 +0300 |
| commit | 07897b38eadf5a370a6001790239f23036d5b970 (patch) | |
| tree | 6fbb8a1dc89933a07a22ca5ca33b79eaafe7055f /include/linux | |
| parent | d4825c99d6a738c565d5142ce37369368a4352da (diff) | |
| download | linux-07897b38eadf5a370a6001790239f23036d5b970.tar.xz | |
pid: port to ns_ref_*() helpers
Stop accessing ns.count directly.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pid_namespace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h index ba0efc8c8596..5b2f29d369c4 100644 --- a/include/linux/pid_namespace.h +++ b/include/linux/pid_namespace.h @@ -62,7 +62,7 @@ static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) { if (ns != &init_pid_ns) - refcount_inc(&ns->ns.count); + ns_ref_inc(ns); return ns; } |
