summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-28 11:32:10 +1000
committerNeilBrown <neilb@suse.de>2011-07-28 11:32:10 +1000
commit2ca68f5ed7383733102ee53cd8fa4021ecc3b275 (patch)
tree29543cff802770d90380b889cf8b0cc01e7d1814 /drivers/md/raid1.h
parent4367af556133723d0f443e14ca8170d9447317cb (diff)
downloadlinux-2ca68f5ed7383733102ee53cd8fa4021ecc3b275.tar.bz2
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>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index f81360d49af4..b7885474e96c 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -101,7 +101,7 @@ struct r1bio_s {
struct list_head retry_list;
/* Next two are only valid when R1BIO_BehindIO is set */
- struct page **behind_pages;
+ struct bio_vec *behind_bvecs;
int behind_page_count;
/*
* if the IO is in WRITE direction, then multiple bios are used.