From: Tejun Heo Date: Mon, 23 May 2011 11:24:54 +0000 (+0200) Subject: block: move bd_set_size() above rescan_partitions() in __blkdev_get() X-Git-Tag: v3.0-rc1~349 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff2a9941ca27ab18169d17b3803aca68b154951c;p=pandora-kernel.git block: move bd_set_size() above rescan_partitions() in __blkdev_get() 02e352287a4 (block: rescan partitions on invalidated devices on -ENOMEDIA too) relocated partition rescan above explicit bd_set_size() to simplify condition check. As rescan_partitions() does its own bdev size setting, this doesn't break anything; however, rescan_partitions() prints out the following messages when adjusting bdev size, which can be confusing. sda: detected capacity change from 0 to 146815737856 sdb: detected capacity change from 0 to 146815737856 This patch restores the original order and remove the warning messages. stable: Please apply together with 02e352287a4 (block: rescan partitions on invalidated devices on -ENOMEDIA too). Signed-off-by: Tejun Heo Reported-by: Tony Luck Tested-by: Tony Luck Cc: stable@kernel.org Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed