Commit 63101913 authored by Long Li's avatar Long Li
Browse files

dax: kabi: Reserve KABI slots for dax_* struct

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE


CVE: NA

--------------------------------

Add kabi slots in dax_* struct for future expansion.

struct			size(byte)	reserve(8*byte) now(byte)
dax_device		768		8		832
dax_operations		32		4		64
dax_holder_operations	8		3		32

Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 4e766eab
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -33,6 +33,15 @@ struct dax_device {
	const struct dax_operations *ops;
	void *holder_data;
	const struct dax_holder_operations *holder_ops;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
};

static dev_t dax_devt;
+9 −0
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@ struct dax_operations {
	 */
	size_t (*recovery_write)(struct dax_device *dax_dev, pgoff_t pgoff,
			void *addr, size_t bytes, struct iov_iter *iter);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

struct dax_holder_operations {
@@ -53,6 +58,10 @@ struct dax_holder_operations {
	 */
	int (*notify_failure)(struct dax_device *dax_dev, u64 offset,
			u64 len, int mf_flags);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
};

#if IS_ENABLED(CONFIG_DAX)