diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-03-04 11:15:26 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-03-04 11:15:26 +0100 |
commit | 1b4c36f9b11e4a68f6174d1b6542b50cd29cddd2 (patch) | |
tree | 735b11a744d0acd18a1d7b7a4a5fa63fc6d23b92 /include/net/net_namespace.h | |
parent | d0ba9bcf001c7907e4755b0e498f5ff9d1a228ef (diff) | |
parent | f6bdaab79ee4228a143ee1b4cb80416d6ffc0c63 (diff) |
Merge branch 'x86/urgent' into x86/cpu, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 7ba1402ca779..f467a66abc6b 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -297,6 +297,7 @@ static inline int check_net(const struct net *net) } void net_drop_ns(void *); +void net_passive_dec(struct net *net); #else @@ -326,8 +327,18 @@ static inline int check_net(const struct net *net) } #define net_drop_ns NULL + +static inline void net_passive_dec(struct net *net) +{ + refcount_dec(&net->passive); +} #endif +static inline void net_passive_inc(struct net *net) +{ + refcount_inc(&net->passive); +} + /* Returns true if the netns initialization is completed successfully */ static inline bool net_initialized(const struct net *net) { |