[CRIU] [PATCH 07/12]v2 deduplication: look up for old pages in previous snapshot

Pavel Emelyanov xemul at parallels.com
Mon Dec 16 06:02:07 PST 2013


> @@ -234,7 +234,17 @@ static int open_page_read_at(int dfd, int pid, struct page_read *pr)
>  	return 0;
>  }
>  
> +static int open_page_read_at(int dfd, int pid, struct page_read *pr)
> +{
> +	return open_page_at(dfd, pid, pr, O_RSTR);
> +}
> +
>  int open_page_read(int pid, struct page_read *pr)
>  {
>  	return open_page_read_at(get_service_fd(IMG_FD_OFF), pid, pr);
>  }
> +
> +int open_page_rw(int pid, struct page_read *pr)
> +{
> +	return open_page_at(get_service_fd(IMG_FD_OFF), pid, pr, O_RDWR);
> +}
> 


Plz, make this open_page_read_at() function re-split in separate patch.


More information about the CRIU mailing list