Commit 784f5669 authored by Dezhi Huang's avatar Dezhi Huang Committed by Todd Kjos
Browse files

ANDROID: mm: create vendor hooks for page alloc



Add vendor hook inside of get_page_from_freelist() to check
and modify the watermark in some special situations.
Additional page flag bit will be set for future identification.

Separately, a vendor hook inside of page_add_new_anon_rmap()
is added to set the referenced bit in some situations, e.g.
if the special bit in the page flag mentioned before is set,
we will give this page one more chance before it gets reclaimed.

Bug: 279793368
Change-Id: I363853a050a87201f6f368ccc580485dddd6c6b6
Signed-off-by: default avatarDezhi Huang <huangdezhi@hihonor.com>
parent 3abed61c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment