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

Commit 4538a378 authored by Tatsuyuki Ishi's avatar Tatsuyuki Ishi
Browse files

prefetch: Handle large folios correctly

Newer kernel supports large folios in filesystems, where page cache
entries are added in the unit of (1 << order) pages. The initial support
was added in [1], where the size (order) was exposed in tracepoint.
Recently, EROFS started supporting large folios on compressed pages in
v6.11, which along with the v6.12 uprev to cause obviously missed pages
and large increase in pack size due to fragmentation.

Add support for parsing the order field, and reflect that in the page
records.

[1]: https://lore.kernel.org/all/20220116121822.1727633-4-willy@infradead.org/

Bug: 409692272
Test: cargo test
Test: prefetch.pack is 200KB and reads 724MB, vs. 1MB and read 400MB on ToT
Change-Id: I5f94f3bc8563f43875394cff3ce58916938e832b
parent 5155a5f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment