Commit 8ca04592 authored by ZhaoLong Wang's avatar ZhaoLong Wang
Browse files

exportfs: kabi: Reserve KABI slots for export_operations structure

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



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

export_operations is a structure for registering callback methods and has
changed since version 5.10.

Reserve two KABI slots for export_operations by referring to the policy
of version 5.10.

Signed-off-by: default avatarZhaoLong Wang <wangzhaolong1@huawei.com>
parent 34a4a473
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
#define LINUX_EXPORTFS_H 1

#include <linux/types.h>
#include <linux/kabi.h>

struct dentry;
struct iattr;
@@ -225,6 +226,8 @@ struct export_operations {
						*/
#define EXPORT_OP_FLUSH_ON_CLOSE	(0x20) /* fs flushes file data on close */
	unsigned long	flags;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid,