ANDROID: fix kernelci build failure in vmscan.c
Vendor hooks added in vmscan.c directly referenced a vendor-specific
field which is only defined if CONFIG_ANDROID_VENDOR_OEM_DATA is
enabled. A kernelci config wich CONFIG_ANDROID_VENDOR_OEM_DATA
disabled and CONFIG_ANDROID_VENDOR_HOOKS enabled has a build-break
due to the undefined field.
Fixes: 3e2dc32f59 ("ANDROID: mm: create vendor hooks for memory reclaim")
Change-Id: Id7d31af9cf5752eba5ba27c5d31a288230f29114
Signed-off-by: Todd Kjos <tkjos@google.com>
This commit is contained in:
parent
8a609c5eb4
commit
d645236cfd
1 changed files with 4 additions and 0 deletions
|
|
@ -6349,8 +6349,10 @@ static inline bool should_continue_reclaim(struct pglist_data *pgdat,
|
|||
if (can_reclaim_anon_pages(NULL, pgdat->node_id, sc))
|
||||
inactive_lru_pages += node_page_state(pgdat, NR_INACTIVE_ANON);
|
||||
|
||||
#ifdef CONFIG_ANDROID_VENDOR_OEM_DATA
|
||||
trace_android_vh_should_continue_reclaim(&sc->android_vendor_data1,
|
||||
&sc->nr_to_reclaim, &sc->nr_reclaimed, &continue_reclaim);
|
||||
#endif
|
||||
if (!continue_reclaim)
|
||||
return false;
|
||||
|
||||
|
|
@ -6712,9 +6714,11 @@ static void modify_scan_control(struct scan_control *sc)
|
|||
{
|
||||
bool file_is_tiny = false, may_writepage = true;
|
||||
|
||||
#ifdef CONFIG_ANDROID_VENDOR_OEM_DATA
|
||||
trace_android_vh_modify_scan_control(&sc->android_vendor_data1,
|
||||
&sc->nr_to_reclaim, sc->target_mem_cgroup, &file_is_tiny,
|
||||
&may_writepage);
|
||||
#endif
|
||||
|
||||
if (file_is_tiny)
|
||||
sc->file_is_tiny = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue