Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1439814 > unrolled thread
| Started by | Alexey Dobriyan <adobriyan@gmail.com> |
|---|---|
| First post | 2016-07-08 23:50 +0200 |
| Last post | 2016-07-08 23:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] ipc: delete "nr_ipc_ns" Alexey Dobriyan <adobriyan@gmail.com> - 2016-07-08 23:50 +0200
| From | Alexey Dobriyan <adobriyan@gmail.com> |
|---|---|
| Date | 2016-07-08 23:50 +0200 |
| Subject | [PATCH] ipc: delete "nr_ipc_ns" |
| Message-ID | <rSLON-23d-11@gated-at.bofh.it> |
Write-only variable.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
include/linux/ipc_namespace.h | 2 --
ipc/msgutil.c | 2 --
ipc/namespace.c | 2 --
3 files changed, 6 deletions(-)
--- a/include/linux/ipc_namespace.h
+++ b/include/linux/ipc_namespace.h
@@ -63,8 +63,6 @@ struct ipc_namespace {
};
extern struct ipc_namespace init_ipc_ns;
-extern atomic_t nr_ipc_ns;
-
extern spinlock_t mq_lock;
#ifdef CONFIG_SYSVIPC
--- a/ipc/msgutil.c
+++ b/ipc/msgutil.c
@@ -37,8 +37,6 @@ struct ipc_namespace init_ipc_ns = {
#endif
};
-atomic_t nr_ipc_ns = ATOMIC_INIT(1);
-
struct msg_msgseg {
struct msg_msgseg *next;
/* the next part of the message follows immediately */
--- a/ipc/namespace.c
+++ b/ipc/namespace.c
@@ -40,7 +40,6 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
kfree(ns);
return ERR_PTR(err);
}
- atomic_inc(&nr_ipc_ns);
sem_init_ns(ns);
msg_init_ns(ns);
@@ -95,7 +94,6 @@ static void free_ipc_ns(struct ipc_namespace *ns)
sem_exit_ns(ns);
msg_exit_ns(ns);
shm_exit_ns(ns);
- atomic_dec(&nr_ipc_ns);
put_user_ns(ns->user_ns);
ns_free_inum(&ns->ns);
Back to top | Article view | linux.kernel
csiph-web