block: add internal hd part table references
We can't use krefs since it's apparently restricted to very basic
reference counting.
This reverts commit e4a683c8.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/block/genhd.c b/block/genhd.c
index 85c1505..399d37e 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1192,7 +1192,8 @@
return NULL;
}
disk->part_tbl->part[0] = &disk->part0;
- kref_init(&disk->part0.ref);
+
+ hd_ref_init(&disk->part0);
disk->minors = minors;
rand_initialize_disk(disk);