diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-01 00:37:32 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-04 14:34:17 -0500 |
| commit | 64964528b24ea390824f0e5ce9d34b8d39b28cde (patch) | |
| tree | 2de66d75468ad4ddecc7e175f86f1dbaae47ea9a /include/linux | |
| parent | 3c0411846118a578de3a979faf2da3ab5fb81179 (diff) | |
make proc_ns_operations work with struct ns_common * instead of void *
We can do that now. And kill ->inum(), while we are at it - all instances
are identical.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/proc_ns.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h index 34a1e105bef4..f284959391fd 100644 --- a/include/linux/proc_ns.h +++ b/include/linux/proc_ns.h | |||
| @@ -6,18 +6,18 @@ | |||
| 6 | 6 | ||
| 7 | struct pid_namespace; | 7 | struct pid_namespace; |
| 8 | struct nsproxy; | 8 | struct nsproxy; |
| 9 | struct ns_common; | ||
| 9 | 10 | ||
| 10 | struct proc_ns_operations { | 11 | struct proc_ns_operations { |
| 11 | const char *name; | 12 | const char *name; |
| 12 | int type; | 13 | int type; |
| 13 | void *(*get)(struct task_struct *task); | 14 | struct ns_common *(*get)(struct task_struct *task); |
| 14 | void (*put)(void *ns); | 15 | void (*put)(struct ns_common *ns); |
| 15 | int (*install)(struct nsproxy *nsproxy, void *ns); | 16 | int (*install)(struct nsproxy *nsproxy, struct ns_common *ns); |
| 16 | unsigned int (*inum)(void *ns); | ||
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | struct proc_ns { | 19 | struct proc_ns { |
| 20 | void *ns; | 20 | struct ns_common *ns; |
| 21 | const struct proc_ns_operations *ns_ops; | 21 | const struct proc_ns_operations *ns_ops; |
| 22 | }; | 22 | }; |
| 23 | 23 | ||
