diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/blkdev.h | 1 | ||||
-rw-r--r-- | include/linux/genhd.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index aae86fd10c4f..482a7fd48831 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -115,6 +115,7 @@ struct request { | |||
115 | void *elevator_private3; | 115 | void *elevator_private3; |
116 | 116 | ||
117 | struct gendisk *rq_disk; | 117 | struct gendisk *rq_disk; |
118 | struct hd_struct *part; | ||
118 | unsigned long start_time; | 119 | unsigned long start_time; |
119 | #ifdef CONFIG_BLK_CGROUP | 120 | #ifdef CONFIG_BLK_CGROUP |
120 | unsigned long long start_time_ns; | 121 | unsigned long long start_time_ns; |
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 7a7b9c1644e4..2ba2792a3dd4 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -116,6 +116,7 @@ struct hd_struct { | |||
116 | struct disk_stats dkstats; | 116 | struct disk_stats dkstats; |
117 | #endif | 117 | #endif |
118 | struct rcu_head rcu_head; | 118 | struct rcu_head rcu_head; |
119 | struct kref ref; | ||
119 | }; | 120 | }; |
120 | 121 | ||
121 | #define GENHD_FL_REMOVABLE 1 | 122 | #define GENHD_FL_REMOVABLE 1 |
@@ -583,6 +584,7 @@ extern struct hd_struct * __must_check add_partition(struct gendisk *disk, | |||
583 | sector_t len, int flags, | 584 | sector_t len, int flags, |
584 | struct partition_meta_info | 585 | struct partition_meta_info |
585 | *info); | 586 | *info); |
587 | extern void __delete_partition(struct kref *ref); | ||
586 | extern void delete_partition(struct gendisk *, int); | 588 | extern void delete_partition(struct gendisk *, int); |
587 | extern void printk_all_partitions(void); | 589 | extern void printk_all_partitions(void); |
588 | 590 | ||