Commit a9d69eb5 authored by Zizhi Wo's avatar Zizhi Wo
Browse files

fscache: reserve kabi for fscache structures

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



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

Reserve space for struct fscache_cache/fscache_cache_ops/fscache_volume/
fscache_cookie.

Signed-off-by: default avatarZizhi Wo <wozizhi@huawei.com>
parent fa30d756
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@ struct fscache_cache {
	unsigned int		debug_id;
	enum fscache_cache_state state;
	char			*name;

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

/*
@@ -77,6 +82,11 @@ struct fscache_cache_ops {

	/* Prepare to write to a live cache object */
	void (*prepare_to_write)(struct fscache_cookie *cookie);

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

extern struct workqueue_struct *fscache_wq;
+11 −0
Original line number Diff line number Diff line
@@ -89,6 +89,12 @@ struct fscache_volume {
#define FSCACHE_VOLUME_ACQUIRE_PENDING	3	/* Volume is waiting to complete acquisition */
#define FSCACHE_VOLUME_CREATING		4	/* Volume is being created on disk */
	u8				coherency_len;	/* Length of the coherency data */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)

	u8				coherency[];	/* Coherency data */
};

@@ -145,6 +151,11 @@ struct fscache_cookie {
		void			*aux;		/* Auxiliary data */
		u8			inline_aux[8];	/* - If the aux data is short enough */
	};

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

/*