Commit 37887781 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov

mount: remove excess mi->external checks

mi->external is always false in these places
Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 1f942ca8
......@@ -1774,7 +1774,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);
......@@ -2071,7 +2071,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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment