Skip to content
Snippets Groups Projects
user avatar
Tangquan Zheng authored
We are adding these hooks to customize the mthp functionality.
1.android_vh_alloc_swap_folio_gfp ----We use this vendor hook
to update the allocation flags for swapping in large pages.

2.android_vh_get_swap_pages_bypass ----We use dual zram to avoid
swap fragmentation, as Chris’s swap reservation has not yet been
merged. This vendor hook is used to select different swap devices.

3.android_vh_should_split_folio_to_list ----This vendor hook is
used to split shared mapped anonymous mTHP during swap-out.

4.android_vh_should_skip_zone ----This vendor hook is used to
prevent mTHP from occupying too much non-virtzone.

5.android_vh_update_unmapped_area_info ----This is used to
update vm_unmapped_area_info.

6.android_vh_replace_anon_vma_name ----This is used to mark
anon_vma_name for mthp.

Bug: 313807618
Change-Id: Ibadb440f89dacad91be17ada9bbff8424e9244d3
Signed-off-by: default avatarTangquan Zheng <zhengtangquan@oppo.com>
58aa298d