Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1132
b: refs/heads/master
c: 29ac8e0
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed May 17, 2005
1 parent 0d97ceb commit d0aa6e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f332287bc3f2801ba43682fd79baf24dc8ac1ce
refs/heads/master: 29ac8e056f2016a8404edc02749d095019aa1f82
5 changes: 2 additions & 3 deletions trunk/drivers/md/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,8 @@ static int linear_make_request (request_queue_t *q, struct bio *bio)
* split it.
*/
struct bio_pair *bp;
bp = bio_split(bio, bio_split_pool,
(bio->bi_sector + (bio->bi_size >> 9) -
(tmp_dev->offset + tmp_dev->size))<<1);
bp = bio_split(bio, bio_split_pool,
((tmp_dev->offset + tmp_dev->size)<<1) - bio->bi_sector);
if (linear_make_request(q, &bp->bio1))
generic_make_request(&bp->bio1);
if (linear_make_request(q, &bp->bio2))
Expand Down

0 comments on commit d0aa6e1

Please sign in to comment.