Unverified Commit d3bc8856 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4543 v2 fs/dcache: kabi: KABI reservation for dentry

parents 429965c4 fd13c8ab
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;

/*