[PATCH 3/10] Pidns: add the struct bsd_acct_struct pointer on pid_namespace struct

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Emelyanov
Date: Thursday, May 15, 2008 - 3:58 am

All the bsdacct-related info will be stored in the area, 
pointer by this one.

It will be NULL automatically for all new namespaces.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
---
 include/linux/pid_namespace.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h
index 1a49ab5..1af82c4 100644
--- a/include/linux/pid_namespace.h
+++ b/include/linux/pid_namespace.h
@@ -14,6 +14,8 @@ struct pidmap {
 
 #define PIDMAP_ENTRIES         ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8)
 
+struct bsd_acct_struct;
+
 struct pid_namespace {
 	struct kref kref;
 	struct pidmap pidmap[PIDMAP_ENTRIES];
@@ -25,6 +27,9 @@ struct pid_namespace {
 #ifdef CONFIG_PROC_FS
 	struct vfsmount *proc_mnt;
 #endif
+#ifdef CONFIG_BSD_PROCESS_ACCT
+	struct bsd_acct_struct *bacct;
+#endif
 };
 
 extern struct pid_namespace init_pid_ns;
-- 
1.5.3.4
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/10] Bsdacct: rename acct_blbls to bsd_acct_struct, Pavel Emelyanov, (Thu May 15, 3:54 am)
[PATCH 3/10] Pidns: add the struct bsd_acct_struct pointer ..., Pavel Emelyanov, (Thu May 15, 3:58 am)