]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1: store behind-write pages in bi_vecs.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:32:10 +0000 (11:32 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:32:10 +0000 (11:32 +1000)
commit1d5cd6a8cdded8903c3a15025c3bc12080a02dbd
tree29543cff802770d90380b889cf8b0cc01e7d1814
parentbef84ddd24912c08e0552ba6f86deb491d7088a3
md/raid1: store behind-write pages in bi_vecs.

When performing write-behind we allocate pages to store the data
during write.
Previously we just keep a list of pages.  Now we keep a list of
bi_vec which includes offset and size.
This means that the r1bio has complete information to create a new
bio which will be needed for retrying after write errors.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid1.c
drivers/md/raid1.h