From: Heinz Mauelshagen Date: Fri, 8 Dec 2006 10:41:01 +0000 (-0800) Subject: [PATCH] dm io: fix bi_max_vecs X-Git-Tag: v2.6.20-rc1~34^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f00b16ad665a9b489d46f612679181f3f914917b;p=pandora-kernel.git [PATCH] dm io: fix bi_max_vecs The existing code allocates an extra slot in bi_io_vec[] and uses it to store the region number. This patch hides the extra slot from bio_add_page() so the region number can't get overwritten. Also remove a hard-coded SECTOR_SHIFT and fix a typo in a comment. Signed-off-by: Heinz Mauelshagen Signed-off-by: Alasdair G Kergon Cc: Milan Broz Cc: dm-devel@redhat.com Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed