projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fafcde3
)
md/raid1: remove unnecessary BUG_ON
author
Guoqing Jiang
<gqjiang@suse.com>
Mon, 14 Mar 2016 09:01:37 +0000
(17:01 +0800)
committer
Shaohua Li
<shli@fb.com>
Mon, 14 Mar 2016 18:35:58 +0000
(11:35 -0700)
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 <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid1.c
b/drivers/md/raid1.c
index 4e3843f7d24592cc596df1fc6d6c4577a9a6f57f..d1d5363b17f4d1ac0da467a015f2c042f9f1e4ee 100644
(file)
--- a/
drivers/md/raid1.c
+++ b/
drivers/md/raid1.c
@@
-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;
}
This page took
0.025226 seconds
and
5
git commands to generate.