This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit 563c4f2
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: 397274634
Change-Id: I19d54c601e2ffc5de5ec2dafcd43fbdcdc84b0d2
Signed-off-by: zhanghui <zhanghui31@xiaomi.com>
(cherry picked from commit 2a0173a)1 parent 0c38091 commit 563c4f2
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3700 | 3700 | | |
3701 | 3701 | | |
3702 | 3702 | | |
| 3703 | + | |
3703 | 3704 | | |
3704 | 3705 | | |
3705 | 3706 | | |
3706 | 3707 | | |
3707 | 3708 | | |
3708 | 3709 | | |
| 3710 | + | |
3709 | 3711 | | |
3710 | 3712 | | |
3711 | 3713 | | |
| |||
3756 | 3758 | | |
3757 | 3759 | | |
3758 | 3760 | | |
3759 | | - | |
| 3761 | + | |
| 3762 | + | |
3760 | 3763 | | |
3761 | 3764 | | |
3762 | 3765 | | |
| |||
0 commit comments