lazy-pages: add comments about different addresses in lazy_iov and lp_req

Both lazy_iov and lp_req have two fields for address/start: the run-time
address that tracks remaps, and the "dump time" address, which is required
for pagemap accesses.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Mike Rapoport 2017-02-08 14:01:14 +02:00 committed by Andrei Vagin
parent 8eae2ee844
commit 985d154ea6

View file

@ -61,16 +61,16 @@ static mutex_t *lazy_sock_mutex;
struct lazy_iov {
struct list_head l;
unsigned long base;
unsigned long img_base;
unsigned long base; /* run-time start address, tracks remaps */
unsigned long img_base; /* start address at the dump time */
unsigned long len;
};
struct lazy_pages_info;
struct lp_req {
unsigned long addr;
unsigned long img_addr;
unsigned long addr; /* actual #PF (or background) destination */
unsigned long img_addr; /* the corresponding address at the dump time */
struct list_head l;
};