mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +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,12 +3050,11 @@ int prepare_mnt_ns(void)
|
||||
pr_perror("Can't restore mntns back");
|
||||
goto err;
|
||||
}
|
||||
nsid->mnt.ns_fd = rst;
|
||||
rst = fd;
|
||||
} else {
|
||||
SWAP(rst, fd);
|
||||
}
|
||||
|
||||
/* Pin one with a file descriptor */
|
||||
nsid->mnt.ns_fd = fd;
|
||||
}
|
||||
|
||||
/* Set its root */
|
||||
path[0] = '/';
|
||||
|
Reference in New Issue
Block a user