提交 5e3db645 编写于 作者: N NeilBrown 提交者: Linus Torvalds

[PATCH] md: fix usage of wrong variable in raid1

Though it rarely matters, we should be using 's' rather than r1_bio->sector
here.
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ae3c20cc
...@@ -1145,7 +1145,7 @@ static int end_sync_write(struct bio *bio, unsigned int bytes_done, int error) ...@@ -1145,7 +1145,7 @@ static int end_sync_write(struct bio *bio, unsigned int bytes_done, int error)
long sectors_to_go = r1_bio->sectors; long sectors_to_go = r1_bio->sectors;
/* make sure these bits doesn't get cleared. */ /* make sure these bits doesn't get cleared. */
do { do {
bitmap_end_sync(mddev->bitmap, r1_bio->sector, bitmap_end_sync(mddev->bitmap, s,
&sync_blocks, 1); &sync_blocks, 1);
s += sync_blocks; s += sync_blocks;
sectors_to_go -= sync_blocks; sectors_to_go -= sync_blocks;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册