mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
proc: Split the namespace stuff out into linux/proc_ns.h
Split the proc namespace stuff out into linux/proc_ns.h. Signed-off-by: David Howells <[email protected]> cc: [email protected] cc: Serge E. Hallyn <[email protected]> cc: Eric W. Biederman <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
c3bef7bcaa
commit
0bb80f2405
15 changed files with 109 additions and 92 deletions
|
|
@ -21,7 +21,7 @@
|
|||
#include <linux/fs_struct.h> /* get_fs_root et.al. */
|
||||
#include <linux/fsnotify.h> /* fsnotify_vfsmount_delete */
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/proc_ns.h>
|
||||
#include "pnode.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
|
@ -1350,13 +1350,13 @@ static bool mnt_ns_loop(struct path *path)
|
|||
* mount namespace loop?
|
||||
*/
|
||||
struct inode *inode = path->dentry->d_inode;
|
||||
struct proc_inode *ei;
|
||||
struct proc_ns *ei;
|
||||
struct mnt_namespace *mnt_ns;
|
||||
|
||||
if (!proc_ns_inode(inode))
|
||||
return false;
|
||||
|
||||
ei = PROC_I(inode);
|
||||
ei = get_proc_ns(inode);
|
||||
if (ei->ns_ops != &mntns_operations)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue