Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Fix for compaction bailing out when MAX_RW_COUNT bytes are sent to compaction

Compaction uses process_madvise which internally makes use of iovec
which imposes certain restrictions on the amount of data that can be
sent, previously we had added a constraint of the total vmas sent within
a single syscall determined by UIO_MAXIOV. However, in this CL we also
added a cap on the amount of bytes sent per syscall up to the maximum
supported MAX_RW_COUNT and split the VMA into chunks which end up
being sent in different syscalls.

Test: Verified ZRAM changes during compaction and added logging to
verify that all VMAs where processed
Bug: 205658049

Change-Id: Ib478397a1199d31a85606b0a38ab1b673b2333fc
parent e7781424
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