projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f1a68
)
md/raid5: use bio_end_sector to calculate last_sector
author
Guoqing Jiang
<jgq516@gmail.com>
Tue, 3 Sep 2019 09:41:03 +0000
(11:41 +0200)
committer
Song Liu
<songliubraving@fb.com>
Tue, 3 Sep 2019 21:52:38 +0000
(14:52 -0700)
Use the common way to get last_sector.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5.c
patch
|
blob
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index 88e56ee98976af58ac2c3c9b12474483ba0da6f5..da6a86e283184796cbaccd44f009f5a262354edd 100644
(file)
--- a/
drivers/md/raid5.c
+++ b/
drivers/md/raid5.c
@@
-5499,7
+5499,7
@@
static void make_discard_request(struct mddev *mddev, struct bio *bi)
return;
logical_sector = bi->bi_iter.bi_sector & ~((sector_t)STRIPE_SECTORS-1);
- last_sector = bi
->bi_iter.bi_sector + (bi->bi_iter.bi_size>>9
);
+ last_sector = bi
o_end_sector(bi
);
bi->bi_next = NULL;