2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

mount: remove extra calls of mntns_collect_root()

Now mntns_collect_root() should be called each time when we need to get
a root of a specified namespace and we don't need to call it for
initializing the global variable.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-04-22 23:49:43 +04:00
committed by Pavel Emelyanov
parent 4ec63d53e1
commit 20003300d8
2 changed files with 0 additions and 6 deletions

View File

@@ -828,9 +828,6 @@ struct mount_info *collect_mntinfo(struct ns_id *ns)
{
struct mount_info *pm;
if (mntns_collect_root(ns->pid) < 0)
return NULL;
pm = parse_mountinfo(ns->pid, ns);
if (!pm) {
pr_err("Can't parse %d's mountinfo\n", ns->pid);