From: Tejun Heo Date: Mon, 25 Aug 2008 10:56:15 +0000 (+0900) Subject: block: make partition array dynamic X-Git-Tag: v2.6.28-rc1~733^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=540eed5637b766bb1e881ef744c42617760b4815;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed