mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
get rid of magic in proc_namespace.c
don't rely on proc_mounts->m being the first field; container_of() is there for purpose. No need to bother with ->private, while we are at it - the same container_of will do nicely. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f7a99c5b7c
commit
6ce6e24e72
3 changed files with 9 additions and 8 deletions
|
|
@ -74,10 +74,12 @@ static inline void get_mnt_ns(struct mnt_namespace *ns)
|
|||
}
|
||||
|
||||
struct proc_mounts {
|
||||
struct seq_file m; /* must be the first element */
|
||||
struct seq_file m;
|
||||
struct mnt_namespace *ns;
|
||||
struct path root;
|
||||
int (*show)(struct seq_file *, struct vfsmount *);
|
||||
};
|
||||
|
||||
#define proc_mounts(p) (container_of((p), struct proc_mounts, m))
|
||||
|
||||
extern const struct seq_operations mounts_op;
|
||||
|
|
|
|||
Loading…
Reference in a new issue