Commit a7835ad6 authored by Richard Chang's avatar Richard Chang Committed by David Stevens
Browse files

ANDROID: zram: Add ioctl for per-process writeback operation



Introduce a new ioctl command `ZRAM_ANDROID_IOC_PROCESS_WRITEBACK`.
Operate on a target process identified by a pidfd, and then iterates
through the virtual memory areas (VMAs) of the target process,
identifies pages that are swapped to the zram device, and then invokes
the corresponding writeback operation.

Bug: 421065577
Change-Id: I84cedb0c18a8088114582e7f54637e119fad1564
Signed-off-by: default avatarRichard Chang <richardycc@google.com>
(cherry picked from commit d174eba7)
Bug: 446676432
Signed-off-by: default avatarDavid Stevens <stevensd@google.com>
parent e31fc84d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment