From: Olaf Kirch Date: Wed, 9 May 2007 09:32:54 +0000 (-0700) Subject: dm crypt: use smaller bvecs in clones X-Git-Tag: v2.6.22-rc1~308 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f97380bcadd6bd2e368727de4061aaba4989c426;p=pandora-kernel.git dm crypt: use smaller bvecs in clones Allocate smaller clones With the previous dm-crypt fixes, there is no need for the clone bios to have the same bvec size as the original - we just need to make them big enough for the remaining number of pages. The only requirement is that we clear the "out" index in convert_context, so that crypt_convert starts storing data at the right position within the clone bio. Signed-off-by: Olaf Kirch Signed-off-by: Alasdair G Kergon Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed