mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 19:14:04 +00:00
lazy-pages: rename update_lazy_iovs to drop_lazy_iovs
The function essentially drops a memory range from lazy IOVecs travis-ci: success for lazy-pages: add non-#PF events handling (rev2) Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
bb75aad9c7
commit
29fc1ad78f
1 changed files with 3 additions and 3 deletions
|
|
@ -331,8 +331,8 @@ static struct lazy_iov *find_lazy_iov(struct lazy_pages_info *lpi,
|
|||
* Purge range (addr, addr + len) from lazy_iovs. The range may
|
||||
* cover several continuous IOVs.
|
||||
*/
|
||||
static int update_lazy_iovs(struct lazy_pages_info *lpi, unsigned long addr,
|
||||
int len)
|
||||
static int drop_lazy_iovs(struct lazy_pages_info *lpi, unsigned long addr,
|
||||
int len)
|
||||
{
|
||||
struct lazy_iov *iov, *n;
|
||||
|
||||
|
|
@ -575,7 +575,7 @@ static int complete_page_fault(struct lazy_pages_info *lpi, unsigned long vaddr,
|
|||
}
|
||||
}
|
||||
|
||||
return update_lazy_iovs(lpi, vaddr, nr * PAGE_SIZE);
|
||||
return drop_lazy_iovs(lpi, vaddr, nr * PAGE_SIZE);
|
||||
}
|
||||
|
||||
static int uffd_io_complete(struct page_read *pr, unsigned long vaddr, int nr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue