[PATCH OLK-6.6 v2] fs/dcache: kabi: KABI reservation for dentry

hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I91CF6 ---------------------------------------------------------------------- structure size reserves reserved dentry 200 2 216 dentry_operations 104 3 128 Signed-off-by: Baokun Li <libaokun1@huawei.com> --- V1->V2: Add kabi.h to avoid compile errors under ppc/ppc64/riscv64/arm. include/linux/dcache.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 1c5b08d804ce..3c29580178cd 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -2,6 +2,7 @@ #ifndef __LINUX_DCACHE_H #define __LINUX_DCACHE_H +#include <linux/kabi.h> #include <linux/atomic.h> #include <linux/list.h> #include <linux/math.h> @@ -114,6 +115,9 @@ struct dentry { } d_u; /* negative dentry under this dentry, if it's dir */ atomic_t d_neg_dnum; + + KABI_RESERVE(1) + KABI_RESERVE(2) } __randomize_layout; /* @@ -143,6 +147,10 @@ struct dentry_operations { struct vfsmount *(*d_automount)(struct path *); int (*d_manage)(const struct path *, bool); struct dentry *(*d_real)(struct dentry *, const struct inode *); + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) } ____cacheline_aligned; /* -- 2.31.1

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/4543 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/Z... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/4543 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/Z...
participants (2)
-
Baokun Li
-
patchwork bot