From: Mikulas Patocka Date: Thu, 12 Aug 2010 03:13:50 +0000 (+0100) Subject: dm snapshot: iterate origin and cow devices X-Git-Tag: v2.6.36-rc1~51^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e5554c8428bc7209a83e2d07ca724be4d981ce3;p=pandora-kernel.git dm snapshot: iterate origin and cow devices Iterate both origin and snapshot devices iterate_devices method should call the callback for all the devices where the bio may be remapped. Thus, snapshot_iterate_devices should call the callback for both snapshot and origin underlying devices because it remaps some bios to the snapshot and some to the origin. snapshot_iterate_devices called the callback only for the origin device. This led to badly calculated device limits if snapshot and origin were placed on different types of disks. Cc: stable@kernel.org Signed-off-by: Mikulas Patocka Reviewed-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed