aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pid_namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pid_namespace.h')
-rw-r--r--include/linux/pid_namespace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h
index 215e5e3dda10..e2772666f004 100644
--- a/include/linux/pid_namespace.h
+++ b/include/linux/pid_namespace.h
@@ -4,6 +4,7 @@
4#include <linux/sched.h> 4#include <linux/sched.h>
5#include <linux/bug.h> 5#include <linux/bug.h>
6#include <linux/mm.h> 6#include <linux/mm.h>
7#include <linux/workqueue.h>
7#include <linux/threads.h> 8#include <linux/threads.h>
8#include <linux/nsproxy.h> 9#include <linux/nsproxy.h>
9#include <linux/kref.h> 10#include <linux/kref.h>
@@ -13,7 +14,9 @@ struct pidmap {
13 void *page; 14 void *page;
14}; 15};
15 16
16#define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8) 17#define BITS_PER_PAGE (PAGE_SIZE * 8)
18#define BITS_PER_PAGE_MASK (BITS_PER_PAGE-1)
19#define PIDMAP_ENTRIES ((PID_MAX_LIMIT+BITS_PER_PAGE-1)/BITS_PER_PAGE)
17 20
18struct bsd_acct_struct; 21struct bsd_acct_struct;
19 22
@@ -28,6 +31,7 @@ struct pid_namespace {
28 struct pid_namespace *parent; 31 struct pid_namespace *parent;
29#ifdef CONFIG_PROC_FS 32#ifdef CONFIG_PROC_FS
30 struct vfsmount *proc_mnt; 33 struct vfsmount *proc_mnt;
34 struct dentry *proc_self;
31#endif 35#endif
32#ifdef CONFIG_BSD_PROCESS_ACCT 36#ifdef CONFIG_BSD_PROCESS_ACCT
33 struct bsd_acct_struct *bacct; 37 struct bsd_acct_struct *bacct;