[PATCH 18/28] [FLAT 3/6] Flush dentries from the namespace's proc tree

Pavel Emelianov xemul at openvz.org
Fri Jun 15 09:18:30 PDT 2007


This is the implementation of [PREP 7/14] for the flat model

Signed-off-by: Pavel Emelianov <xemul at openvz.org>

---

 base.c |    7 +++++++
 1 files changed, 7 insertions(+)

--- ./fs/proc/base.c.flatflush	2007-06-15 15:04:18.000000000 +0400
+++ ./fs/proc/base.c	2007-06-15 15:23:33.000000000 +0400
@@ -2240,6 +2240,13 @@ static inline void proc_flush_task_ns(st
 {
 }
 #else
+#ifdef CONFIG_PID_NS_FLAT
+static inline void proc_flush_task_ns(struct task_struct *tsk, struct pid *pid)
+{
+	if (pid->ns != &init_pid_ns)
+		proc_flush_task_mnt(tsk, pid->ns->proc_mnt);
+}
+#endif
 #endif
 
 void proc_flush_task(struct task_struct *task, struct pid *pid)


More information about the Containers mailing list