ANDROID: add vendor fields to lruvec to record refault stats

struct lruvec :: ANDROID_VENDOR_DATA(1)
It is pointer to a struct to record the following message:
1)the account of workingset_restore pages of cached anonymous and
   file pages
This is used to adjust the strategy and amount of reclaiming data.

Bug: 225795494
Change-Id: I34e57ee23b6c97ac91effa5b72513d238335a996
Signed-off-by: Bing Han <bing.han@transsion.com>
This commit is contained in:
Bing Han
2022-04-15 08:16:43 +00:00
committed by Todd Kjos
parent af4eb0e377
commit 1b14ae01b0

View File

@@ -501,6 +501,7 @@ struct lruvec {
#ifdef CONFIG_MEMCG
struct pglist_data *pgdat;
#endif
ANDROID_VENDOR_DATA(1);
};
/* Isolate unmapped pages */