From 6119d18df76922ed7a81b14fd665710cc1907d24 Mon Sep 17 00:00:00 2001 From: Jaewon Kim Date: Wed, 7 Jul 2021 19:14:27 +0900 Subject: [PATCH] ANDROID: cleancache: add oem data to cleancache_ops Add ANDROID_OEM_DATA to cleancache_ops which allows a new function call between cleancache core and cleancache backend. Bug: 192984560 Signed-off-by: Jaewon Kim Change-Id: I99fb98f33b564fb288dc0d368b9d3049de5efdf9 --- include/linux/cleancache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/cleancache.h b/include/linux/cleancache.h index 5f5730c1d324..b6c42ce7f65b 100644 --- a/include/linux/cleancache.h +++ b/include/linux/cleancache.h @@ -5,6 +5,7 @@ #include #include #include +#include #define CLEANCACHE_NO_POOL -1 #define CLEANCACHE_NO_BACKEND -2 @@ -36,6 +37,7 @@ struct cleancache_ops { void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t); void (*invalidate_inode)(int, struct cleancache_filekey); void (*invalidate_fs)(int); + ANDROID_OEM_DATA(1); }; extern int cleancache_register_ops(const struct cleancache_ops *ops);