aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h2
1 files changed, 2 insertions, 0 deletions
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);
587extern void __delete_partition(struct kref *ref);
586extern void delete_partition(struct gendisk *, int); 588extern void delete_partition(struct gendisk *, int);
587extern void printk_all_partitions(void); 589extern void printk_all_partitions(void);
588 590