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

Andrew Vagin avagin at parallels.com
Mon Nov 12 15:37:43 EST 2012


On Mon, Nov 12, 2012 at 03:26:38PM +0400, Pavel Emelyanov wrote:
> > +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?
Sorry, you already wrote about that and I remembered that I removed it
from here and don't know what it does here again. I will fix that one
more time:).
> 
> > +
> > +	list_for_each_entry(vma, vmas, list) {
> >  		if (!(vma_entry_is(&vma->vma, VMA_AREA_REGULAR)))
> >  			continue;


More information about the CRIU mailing list