提交 64ba823f 编写于 作者: L Luo Meng 提交者: Laibin Qiu

block:Fix kabi broken

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ETAB
CVE: NA

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

Because add state in gendisk and remove flags in block_device, to
fix the kabi chage.
Signed-off-by: NLuo Meng <luomeng12@huawei.com>
Reviewed-by: NJason Yan <yanaijie@huawei.com>
Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com>
上级 f20a726b
......@@ -479,6 +479,7 @@ struct block_device {
struct hd_struct * bd_part;
/* number of times partitions within this device have been opened. */
unsigned bd_part_count;
int bd_invalidated;
struct gendisk * bd_disk;
struct request_queue * bd_queue;
struct backing_dev_info *bd_bdi;
......
......@@ -180,6 +180,8 @@ struct blk_integrity {
#endif /* CONFIG_BLK_DEV_INTEGRITY */
#define GD_NEED_PART_SCAN 0
struct gendisk {
/* major, first_minor and minors are input parameters only,
* don't use directly. Use disk_devt() and disk_max_parts().
......@@ -208,8 +210,6 @@ struct gendisk {
void *private_data;
int flags;
unsigned long state;
#define GD_NEED_PART_SCAN 0
struct rw_semaphore lookup_sem;
struct kobject *slave_dir;
......@@ -226,11 +226,12 @@ struct gendisk {
#ifndef __GENKSYMS__
unsigned long *user_ro_bitmap;
atomic64_t sync_io_sectors; /* RAID */
unsigned long state;
#else
KABI_RESERVE(1)
KABI_RESERVE(2)
#endif
KABI_RESERVE(3)
#endif
KABI_RESERVE(4)
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册