]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] dm io: fix bi_max_vecs
authorHeinz Mauelshagen <hjm@redhat.com>
Fri, 8 Dec 2006 10:41:01 +0000 (02:41 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:29:08 +0000 (08:29 -0800)
commitf00b16ad665a9b489d46f612679181f3f914917b
treefc39bc1e04e063f8c5eda29f79d33a3194bb56fc
parent5cd307c5655c0b76d563b5f3f911742a32746841
[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 <hjm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Milan Broz <mbroz@redhat.com>
Cc: dm-devel@redhat.com
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-io.c