diff options
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 6cf587196b99..9a35320fb59f 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -1546,7 +1546,7 @@ void bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector) | |||
1546 | wait_event(bitmap->mddev->recovery_wait, | 1546 | wait_event(bitmap->mddev->recovery_wait, |
1547 | atomic_read(&bitmap->mddev->recovery_active) == 0); | 1547 | atomic_read(&bitmap->mddev->recovery_active) == 0); |
1548 | 1548 | ||
1549 | bitmap->mddev->curr_resync_completed = bitmap->mddev->curr_resync; | 1549 | bitmap->mddev->curr_resync_completed = sector; |
1550 | set_bit(MD_CHANGE_CLEAN, &bitmap->mddev->flags); | 1550 | set_bit(MD_CHANGE_CLEAN, &bitmap->mddev->flags); |
1551 | sector &= ~((1ULL << CHUNK_BLOCK_SHIFT(bitmap)) - 1); | 1551 | sector &= ~((1ULL << CHUNK_BLOCK_SHIFT(bitmap)) - 1); |
1552 | s = 0; | 1552 | s = 0; |