block: set disk->node_id before it's being used
commitbf91db18ac2852a3ff39fe25ff56c5557c0fff78
authorCheng Renquan <crquan@gmail.com>
Thu, 20 Nov 2008 07:37:37 +0000 (20 08:37 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 3 Dec 2008 11:41:20 +0000 (3 12:41 +0100)
tree42ce67fceb2b3072717cde31c8b4474f4c4a050d
parent53cc0b2948bcb8a084982e6c1f9bd7b337e0df38
block: set disk->node_id before it's being used

disk->node_id will be refered in allocating in disk_expand_part_tbl, so we
should set it before disk->node_id is refered.

Signed-off-by: Cheng Renquan <crquan@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c