diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-01-07 02:43:37 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-01-07 02:43:37 -0500 |
commit | 6c23a9681c0fe7fb7dd331b39dda11926f43746e (patch) | |
tree | bf113a475a17faa866e7e59806378107dcb3aa40 /block/genhd.c | |
parent | 09e099d4bafea3b15be003d548bdf94b4b6e0e17 (diff) |
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>
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index 85c150598830..399d37ec7412 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1192,7 +1192,8 @@ struct gendisk *alloc_disk_node(int minors, int node_id) | |||
1192 | return NULL; | 1192 | return NULL; |
1193 | } | 1193 | } |
1194 | disk->part_tbl->part[0] = &disk->part0; | 1194 | disk->part_tbl->part[0] = &disk->part0; |
1195 | kref_init(&disk->part0.ref); | 1195 | |
1196 | hd_ref_init(&disk->part0); | ||
1196 | 1197 | ||
1197 | disk->minors = minors; | 1198 | disk->minors = minors; |
1198 | rand_initialize_disk(disk); | 1199 | rand_initialize_disk(disk); |