Commit deef1c2f authored by Hailong Liu's avatar Hailong Liu
Browse files

ANDROID: mm: add vendor hooks for file folio reclaim.

Add hooks for file folio reclaim. the vendor hook keep reclaimed file folios
and help direct && kswapd reclaim.

Conflicts:
	drivers/android/vendor_hooks.c
	include/linux/mm_inline.h
	include/trace/hooks/mm.h
	include/trace/hooks/vmscan.h
	mm/filemap.c
	mm/page_alloc.c
	mm/vmscan.c
	replace folio with page

Add a new vendor hook:
android_vh_mglru_should_abort_scan
because the original change use android_vendor_data1
https://android-review.googlesource.com/c/kernel/common/+/3258173



Bug: 407947362
Bug: 423459880
Change-Id: I4364ae2d269e4b4b88c12823ebf66abaa4650585
Signed-off-by: default avatarHailong Liu <hailong.liu@oppo.com>
(cherry picked from commit 43bf81d1)
Signed-off-by: default avatarHailong Liu <liuhailong@oppo.com>
parent b61cb943
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment