mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
mnt: Move ns_fd assignment down in prepare_mnt_ns()
No functional changes. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
bfbd7bbacb
commit
a8ab6c569e
@@ -3050,13 +3050,12 @@ int prepare_mnt_ns(void)
|
||||
pr_perror("Can't restore mntns back");
|
||||
goto err;
|
||||
}
|
||||
nsid->mnt.ns_fd = rst;
|
||||
rst = fd;
|
||||
} else {
|
||||
/* Pin one with a file descriptor */
|
||||
nsid->mnt.ns_fd = fd;
|
||||
SWAP(rst, fd);
|
||||
}
|
||||
|
||||
/* Pin one with a file descriptor */
|
||||
nsid->mnt.ns_fd = fd;
|
||||
|
||||
/* Set its root */
|
||||
path[0] = '/';
|
||||
print_ns_root(nsid, 0, path + 1, sizeof(path) - 1);
|
||||
|
Reference in New Issue
Block a user