[CRIU] [PATCH 2/5] mount: remove excess mi->external checks

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Wed Mar 1 05:17:42 PST 2017


mi->external is always false in these places

https://jira.sw.ru/browse/PSBM-46753
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/mount.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/mount.c b/criu/mount.c
index 0053055..f5835d3 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -1744,7 +1744,7 @@ static int do_new_mount(struct mount_info *mi)
 		goto out;
 	}
 
-	if (!mi->is_ns_root && !mi->external && remount_ro) {
+	if (!mi->is_ns_root && remount_ro) {
 		int fd;
 
 		fd = open(mi->mountpoint, O_PATH);
@@ -2041,7 +2041,7 @@ static bool can_mount_now(struct mount_info *mi)
 		}
 	}
 
-	if (!fsroot_mounted(mi) && (mi->bind == NULL && !mi->need_plugin && !mi->external))
+	if (!fsroot_mounted(mi) && (mi->bind == NULL && !mi->need_plugin))
 		return false;
 
 shared:
-- 
2.9.3



More information about the CRIU mailing list