[CRIU] [PATCH 04/15] restore: split read_and_open_vmas into parts read_vmas and open_vmas

Pavel Emelyanov xemul at parallels.com
Mon Nov 12 06:26:38 EST 2012


> +static int open_vmas(int pid, struct list_head *vmas)
> +{
> +	struct vma_area *vma;
> +	int fd, ret = -1;
>  
> +	fd = open_image_ro(CR_FD_VMAS, pid);
> +	if (fd < 0)
> +		return fd;

Is this open_image required?

> +
> +	list_for_each_entry(vma, vmas, list) {
>  		if (!(vma_entry_is(&vma->vma, VMA_AREA_REGULAR)))
>  			continue;


More information about the CRIU mailing list