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>
This commit is contained in:
Al Viro
2014-11-01 00:37:32 -04:00
parent 3c04118461
commit 64964528b2
9 changed files with 28 additions and 65 deletions

View File

@@ -6,18 +6,18 @@
struct pid_namespace;
struct nsproxy;
struct ns_common;
struct proc_ns_operations {
const char *name;
int type;
void *(*get)(struct task_struct *task);
void (*put)(void *ns);
int (*install)(struct nsproxy *nsproxy, void *ns);
unsigned int (*inum)(void *ns);
struct ns_common *(*get)(struct task_struct *task);
void (*put)(struct ns_common *ns);
int (*install)(struct nsproxy *nsproxy, struct ns_common *ns);
};
struct proc_ns {
void *ns;
struct ns_common *ns;
const struct proc_ns_operations *ns_ops;
};