2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

mnt: Turn mntns_get_root_fd into accepting mnt ns_id

The only exception (for now) is the irmap -- it should
operate on ns as well.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2014-04-23 02:31:16 +04:00
parent 1c4f8fdcc2
commit 68e2841a9b
5 changed files with 16 additions and 10 deletions

View File

@@ -375,7 +375,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
if (ns == NULL)
return -1;
if (mntns_get_root_fd(ns->pid) < 0)
if (mntns_get_root_fd(ns) < 0)
return -1;
d = xzalloc(sizeof(*d));