block: move register_disk() and del_gendisk() to block/genhd.c
authorTejun Heo <tj@kernel.org>
Wed, 8 Dec 2010 19:57:36 +0000 (20:57 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 16 Dec 2010 16:53:38 +0000 (17:53 +0100)
commitd2bf1b6723ed0eab378363649d15b7893bf14e91
tree4a4144b09ab747ad661605aa761753d9a805e77f
parentdddd9dc340ae1a41d90e084529ca979c77c4ecfe
block: move register_disk() and del_gendisk() to block/genhd.c

There's no reason for register_disk() and del_gendisk() to be in
fs/partitions/check.c.  Move both to genhd.c.  While at it, collapse
unlink_gendisk(), which was artificially in a separate function due to
genhd.c / check.c split, into del_gendisk().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/genhd.c
fs/partitions/check.c
include/linux/blkdev.h
include/linux/genhd.h