]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
block: replace @ext_minors with GENHD_FL_EXT_DEVT
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:56:16 +0000 (19:56 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:08 +0000 (08:56 +0200)
commit689d6fac40b41c7bf154f362deaf442548e4dc81
tree5989dc5767f657272194ee8c7d69c6db1e62dab7
parent540eed5637b766bb1e881ef744c42617760b4815
block: replace @ext_minors with GENHD_FL_EXT_DEVT

With previous changes, it's meaningless to limit the number of
partitions.  Replace @ext_minors with GENHD_FL_EXT_DEVT such that
setting the flag allows the disk to have maximum number of allowed
partitions (only limited by the number of entries in parsed_partitions
as determined by MAX_PART constant).

This kills not-too-pretty alloc_disk_ext[_node]() functions and makes
@minors parameter to alloc_disk[_node]() unnecessary.  The parameter
is left alone to avoid disturbing the users.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c
drivers/ide/ide-disk.c
drivers/scsi/sd.c
fs/partitions/check.h
include/linux/genhd.h