From 3b300ff4c5aaccd8668b891b5f9c5815696faa50 Mon Sep 17 00:00:00 2001 From: Egor Uleyskiy Date: Wed, 7 Oct 2020 21:54:07 +0300 Subject: [PATCH] ANDROID: vendor_hooks: Add a vendor data to file struct Add ANDROID_VENDOR_DATA(1) to struct file Bug: 169343953 Signed-off-by: Egor Uleyskiy Signed-off-by: Greg Kroah-Hartman Change-Id: I1afc259f2bd02fee76b20802dda74cbe79658534 --- include/linux/fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index adf8e771abfb..b018302ad852 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -44,6 +44,7 @@ #include #include +#include struct backing_dev_info; struct bdi_writeback; @@ -990,6 +991,8 @@ struct file { #endif /* #ifdef CONFIG_EPOLL */ struct address_space *f_mapping; errseq_t f_wb_err; + + ANDROID_VENDOR_DATA(1); } __randomize_layout __attribute__((aligned(4))); /* lest something weird decides that 2 is OK */