[Devel] [PATCH 24/28] [MULTI 3/6] Flush dentries from the namespace's proc tree
Pavel Emelianov
xemul at openvz.org
Fri Jun 15 09:26:13 PDT 2007
This is the implementation of [PREP 7/14] for the multilevel model
Signed-off-by: Pavel Emelianov <xemul at openvz.org>
---
base.c | 12 ++++++++++++
1 files changed, 12 insertions(+)
--- ./fs/proc/base.c.multiflush 2007-06-15 15:23:33.000000000 +0400
+++ ./fs/proc/base.c 2007-06-15 15:34:17.000000000 +0400
@@ -2247,6 +2247,18 @@ static inline void proc_flush_task_ns(st
proc_flush_task_mnt(tsk, pid->ns->proc_mnt);
}
#endif
+
+#ifdef CONFIG_PID_NS_MULTILEVEL
+static inline void proc_flush_task_ns(struct task_struct *tsk, struct pid *pid)
+{
+ struct pid_number *pnr;
+
+ for_each_pid_nr(pnr, pid)
+ /* init_pid_ns's mnt is global proc_mnt, which is flushed */
+ if (pnr->ns != &init_pid_ns)
+ proc_flush_task_mnt(tsk, pnr->ns->proc_mnt);
+}
+#endif
#endif
void proc_flush_task(struct task_struct *task, struct pid *pid)
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list