]> git.baikalelectronics.ru Git - kernel.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)
commitf6b445777d1b90a887abc1dd4c12787d8379b093
tree5989dc5767f657272194ee8c7d69c6db1e62dab7
parent4366ae11c235c5625cb9c1fcde328116663c404d
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