hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE CVE: NA
--------------------------------
Add kabi slots in fscrypt_operations struct for future expansion.
struct size(byte) reserve(8*byte) now(byte) fscrypt_operations 72 3 96
Signed-off-by: Long Li leo.lilong@huawei.com --- include/linux/fscrypt.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index c895b12737a1..f4c4a761d078 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -13,6 +13,7 @@ #ifndef _LINUX_FSCRYPT_H #define _LINUX_FSCRYPT_H
+#include <linux/kabi.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/slab.h> @@ -176,6 +177,10 @@ struct fscrypt_operations { */ struct block_device **(*get_devices)(struct super_block *sb, unsigned int *num_devs); + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) };
static inline struct fscrypt_info *fscrypt_get_info(const struct inode *inode)