mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
page-read: Don't check for cache/proxy in local case
The opts.remote is always false in this code. Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
c1d90f46a2
commit
aae3cd6356
@@ -388,7 +388,7 @@ static int maybe_read_page_local(struct page_read *pr, unsigned long vaddr,
|
||||
* for us for urgent async read, just do the regular
|
||||
* cached read.
|
||||
*/
|
||||
if ((flags & (PR_ASYNC|PR_ASAP)) == PR_ASYNC && !opts.remote)
|
||||
if ((flags & (PR_ASYNC|PR_ASAP)) == PR_ASYNC)
|
||||
ret = pagemap_enqueue_iovec(pr, buf, len, &pr->async);
|
||||
else {
|
||||
ret = read_local_page(pr, vaddr, len, buf);
|
||||
|
Reference in New Issue
Block a user