From: Tejun Heo Date: Mon, 25 Aug 2008 10:30:15 +0000 (+0900) Subject: block: allow deleting zero length partition X-Git-Tag: v2.6.28-rc1~733^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec2cdedf798385a9397ac50dd0405dd658f8529c;p=pandora-kernel.git block: allow deleting zero length partition delete_partition() was noop for zero length partition. As the addition code allows creating zero lenght partition and deletion is assumed to always succeed, this causes memory leak for zero length partitions. Allow zero length partitions to end their meaningless lives. While at it, allow deleting zero lenght partition via BLKPG_DEL_PARTITION ioctl too. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed