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

Submitted by Pavel Tikhomirov on March 1, 2017, 1:17 p.m.

Details

Message ID 20170301131745.22606-3-ptikhomirov@virtuozzo.com
State New
Series "mount: handle external mount bindmounts"
Headers show

Commit Message

Pavel Tikhomirov March 1, 2017, 1:17 p.m.
mi->external is always false in these places

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

Patch hide | download patch | download mbox

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: