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

Andrew Vagin avagin at virtuozzo.com
Mon Mar 20 12:06:59 PDT 2017


Applied

On Mon, Mar 20, 2017 at 12:45:41PM +0300, Pavel Tikhomirov wrote:
> 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 589dd58..6e5a4c6 100644
> --- a/criu/mount.c
> +++ b/criu/mount.c
> @@ -1773,7 +1773,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);
> @@ -2070,7 +2070,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