Commit eb41d26d authored by Pavel Emelyanov's avatar Pavel Emelyanov

pages: Rename parasite args->nr to args->nr_segs

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c15d4ee6
......@@ -68,7 +68,7 @@ struct parasite_mprotect_args
struct parasite_dump_pages_args {
unsigned int off;
unsigned int nr;
unsigned int nr_segs;
unsigned int nr_pages;
struct iovec iovs[0];
};
......
......@@ -349,16 +349,16 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
if (ret)
goto out_pp;
args->nr = ppb->nr_segs;
args->nr_segs = ppb->nr_segs;
args->nr_pages = ppb->pages_in;
pr_debug("PPB: %d pages %d segs %u pipe %d off\n",
args->nr_pages, args->nr, ppb->pipe_size, args->off);
args->nr_pages, args->nr_segs, ppb->pipe_size, args->off);
ret = parasite_execute(PARASITE_CMD_DUMPPAGES, ctl);
if (ret < 0)
goto out_pp;
args->off += args->nr;
args->off += args->nr_segs;
}
ret = open_page_xfer(&xfer, CR_FD_PAGEMAP, ctl->pid.virt);
......
......@@ -60,7 +60,7 @@ static int dump_pages(struct parasite_dump_pages_args *args)
if (p < 0)
return -1;
ret = sys_vmsplice(p, &args->iovs[args->off], args->nr,
ret = sys_vmsplice(p, &args->iovs[args->off], args->nr_segs,
SPLICE_F_GIFT | SPLICE_F_NONBLOCK);
if (ret != PAGE_SIZE * args->nr_pages) {
sys_close(p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment