[CRIU] [PATCH 1/2] pagemap: Introduce pagemap cache

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 11 12:06:01 PST 2014


On Tue, Feb 11, 2014 at 11:57:16PM +0400, Andrew Vagin wrote:
> > +
> > +	/*
> > +	 * Cache miss -- fill the cache.
> > +	 */
> > +	pmc->start	= vma->e->start;
> > +	pmc->end	= pmc->start + pmc->nr_pages * PAGE_SIZE;
> > +	head		= container_of(vma->list.prev, struct vma_area, list);
> 
> head???

Yes. It become a "head" of list for this case. Look, I'm receiving vma, it is
linked to the list, so I pick it as a head and walk forward.


More information about the CRIU mailing list