Commit 00dbf42e authored by ZhaoLong Wang's avatar ZhaoLong Wang
Browse files

pipe: kabi: Reserve KABI slots for pipe_inode_info structure

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



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

pipe_inode_info is a structure widely used in the kernel and occupies
168 bytes. In the three cache lines, three KABI slots can be reserved
for future expansion.

Signed-off-by: default avatarZhaoLong Wang <wangzhaolong1@huawei.com>
parent 8ca04592
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
#ifndef _LINUX_PIPE_FS_I_H
#define _LINUX_PIPE_FS_I_H

#include <linux/kabi.h>

#define PIPE_DEF_BUFFERS	16

#define PIPE_BUF_FLAG_LRU	0x01	/* page is on the LRU */
@@ -80,6 +82,9 @@ struct pipe_inode_info {
#ifdef CONFIG_WATCH_QUEUE
	struct watch_queue *watch_queue;
#endif
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
};

/*