projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1683098
)
md/raid5: remove redundant check in stripe_add_to_batch_list()
author
Roman Gushchin
<
[email protected]
>
Sun, 20 Dec 2015 23:50:59 +0000
(10:50 +1100)
committer
NeilBrown
<
[email protected]
>
Wed, 6 Jan 2016 00:38:22 +0000
(11:38 +1100)
The stripe_add_to_batch_list() function is called only if
stripe_can_batch() returned true, so there is no need for double check.
Signed-off-by: Roman Gushchin <
[email protected]
>
Cc: Neil Brown <
[email protected]
>
Cc:
[email protected]
Signed-off-by: NeilBrown <
[email protected]
>
drivers/md/raid5.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index 704ef7fcfbf83239ff7ac119d37354576dea5221..22362505f810fcd9825ea4683bcf1d40285a8208 100644
(file)
--- a/
drivers/md/raid5.c
+++ b/
drivers/md/raid5.c
@@
-772,8
+772,6
@@
static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh
int hash;
int dd_idx;
- if (!stripe_can_batch(sh))
- return;
/* Don't cross chunks, so stripe pd_idx/qd_idx is the same */
tmp_sec = sh->sector;
if (!sector_div(tmp_sec, conf->chunk_sectors))