From 3cea2a67dcb8f1f39e78046a3a0cbd8076deb7a4 Mon Sep 17 00:00:00 2001 From: Bing Han Date: Fri, 15 Apr 2022 08:16:43 +0000 Subject: [PATCH] ANDROID: add vendor fields to lruvec to record refault stats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit 1b14ae01b09dfde89da470cac8415cefaca824fb) (cherry picked from commit dcac70709fb59478979519d7502b2bb5b8389ff6) --- include/linux/mmzone.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 2eb858b66b53..34870b107ddc 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -636,6 +636,7 @@ struct lruvec { #ifdef CONFIG_MEMCG struct pglist_data *pgdat; #endif + ANDROID_VENDOR_DATA(1); }; /* Isolate unmapped pages */