Skip to content
Commit 33b1957c authored by Edgar Arriaga's avatar Edgar Arriaga
Browse files

Resend remaining VMAs on partial compaction due to failure



process_madvise syscall returns the total bytes that were processed
however, upon failure it will send the partial amount of bytes
that were processed in which case this patch aims to skip the failure
page then resend any batch of vmas that was not fully processed.
This way we would effectively process the whole range of vmas
rather than skipping the rest of the vmas in batch when
process_madvise does a partial advise.

Test: Manual
Test: am compact <pid> <uid> full
Bug: 205658049

Signed-off-by: default avatarEdgar Arriaga <edgararriaga@google.com>
Change-Id: I6445ea85f5eb028cb1d11a4af77c5c4cedf76954
parent ce1bdbe5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment