]> Git Repo - linux.git/commit
block: make partition array dynamic
authorTejun Heo <[email protected]>
Mon, 25 Aug 2008 10:56:15 +0000 (19:56 +0900)
committerJens Axboe <[email protected]>
Thu, 9 Oct 2008 06:56:08 +0000 (08:56 +0200)
commit540eed5637b766bb1e881ef744c42617760b4815
tree8bdf54967a8290f780216f767291623e67ee7e9b
parent074a7aca7afa6f230104e8e65eba3420263714a5
block: make partition array dynamic

disk->__part used to be statically allocated to the maximum possible
number of partitions.  This patch makes partition array allocation
dynamic.  The added overhead is minimal as only real change is one
memory dereference changed to RCU one.  This saves both a bit of
memory and cpu cycles iterating through unoccupied slots and makes
increasing partition limit easier.

Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/genhd.c
block/ioctl.c
fs/partitions/check.c
include/linux/genhd.h
This page took 0.059143 seconds and 4 git commands to generate.