Commit 0c3c360f authored by zhanghui's avatar zhanghui Committed by xinxin Chen
Browse files

ANDROID: mm: add a new vendor hook in filemap_map_pages



In the current vendor hook, if next_uptodate_folio returns NULL, the
first_pgoff is set to zero, and the last_pgoff is set to start_pgoff.
Therefore, the collection range is from 0 to the start_pgoff.

|-----------|------------|-------------|------------------|
0      start_pgoff  first_pgoff    last_pgoff         end_pgoff

We want to collect the first_pgoff to last_pgoff, so we have to add a
new vendor hook.

Bug: 398130226
Bug: 400290767
Bug: 401382880

Change-Id: I19d54c601e2ffc5de5ec2dafcd43fbdcdc84b0d2
Signed-off-by: default avatarzhanghui <zhanghui31@xiaomi.com>
(cherry picked from commit eaffa3e3)
(cherry picked from commit 5ef6cde4)
parent 2931ef65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment