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 <jaewon31.kim@samsung.com> Change-Id: I99fb98f33b564fb288dc0d368b9d3049de5efdf9
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/exportfs.h>
|
#include <linux/exportfs.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
|
#include <linux/android_vendor.h>
|
||||||
|
|
||||||
#define CLEANCACHE_NO_POOL -1
|
#define CLEANCACHE_NO_POOL -1
|
||||||
#define CLEANCACHE_NO_BACKEND -2
|
#define CLEANCACHE_NO_BACKEND -2
|
||||||
@@ -36,6 +37,7 @@ struct cleancache_ops {
|
|||||||
void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t);
|
void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t);
|
||||||
void (*invalidate_inode)(int, struct cleancache_filekey);
|
void (*invalidate_inode)(int, struct cleancache_filekey);
|
||||||
void (*invalidate_fs)(int);
|
void (*invalidate_fs)(int);
|
||||||
|
ANDROID_OEM_DATA(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int cleancache_register_ops(const struct cleancache_ops *ops);
|
extern int cleancache_register_ops(const struct cleancache_ops *ops);
|
||||||
|
Reference in New Issue
Block a user