mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
md/raid1: remove unnecessary BUG_ON
Since bitmap_start_sync will not return until sync_blocks is not less than PAGE_SIZE>>9, so the BUG_ON is not needed anymore. Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Shaohua Li <[email protected]>
This commit is contained in:
parent
fafcde3ac1
commit
b3c95b425e
1 changed files with 0 additions and 1 deletions
|
|
@ -2695,7 +2695,6 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr,
|
|||
!conf->fullsync &&
|
||||
!test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery))
|
||||
break;
|
||||
BUG_ON(sync_blocks < (PAGE_SIZE>>9));
|
||||
if ((len >> 9) > sync_blocks)
|
||||
len = sync_blocks<<9;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue