Commit fd13c8ab authored by Baokun Li's avatar Baokun Li
Browse files

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: default avatarBaokun Li <libaokun1@huawei.com>
parent fa30d756
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;

/*