]> err.no Git - linux-2.6/commit
[patch 5/7] vfs: mountinfo: allow using process root
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 27 Mar 2008 12:06:24 +0000 (13:06 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Apr 2008 04:04:57 +0000 (00:04 -0400)
commita1a2c409b666befc58c2db9c7fbddf200f153470
tree3ea8e4c8f1311436939492d70de23dcf185994de
parent719f5d7f0b90ac2c8f8ca4232eb322b266fea01e
[patch 5/7] vfs: mountinfo: allow using process root

Allow /proc/<pid>/mountinfo to use the root of <pid> to calculate
mountpoints.

 - move definition of 'struct proc_mounts' to <linux/mnt_namespace.h>
 - add the process's namespace and root to this structure
 - pass a pointer to 'struct proc_mounts' into seq_operations

In addition the following cleanups are made:

 - use a common open function for /proc/<pid>/{mounts,mountstat}
 - surround namespace.c part of these proc files with #ifdef CONFIG_PROC_FS
 - make the seq_operations structures const

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
fs/proc/base.c
include/linux/mnt_namespace.h