[CRIU] [RFC PATCH v2 07/23] lazy-pages: rename update_lazy_iovs to drop_lazy_iovs
Mike Rapoport
rppt at linux.vnet.ibm.com
Mon Feb 6 03:44:00 PST 2017
The function essentially drops a memory range from lazy IOVecs
Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
criu/uffd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/criu/uffd.c b/criu/uffd.c
index 154824c..bfd5c4c 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -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)
--
1.9.1
More information about the CRIU
mailing list