Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38117
b: refs/heads/master
c: 2d2063c
h: refs/heads/master
i:
  38115: f5b6534
v: v3
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Oct 3, 2006
1 parent 8e5ac50 commit 67581be
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: 9b1d1dac181d8c1b9492e05cee660a985d035a06
refs/heads/master: 2d2063ceae73660d5142f4754d50a75b655fd1f9
5 changes: 2 additions & 3 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,10 +1351,9 @@ static int page_is_zero(struct page *p)
static int stripe_to_pdidx(sector_t stripe, raid5_conf_t *conf, int disks)
{
int sectors_per_chunk = conf->chunk_size >> 9;
sector_t x = stripe;
int pd_idx, dd_idx;
int chunk_offset = sector_div(x, sectors_per_chunk);
stripe = x;
int chunk_offset = sector_div(stripe, sectors_per_chunk);

raid5_compute_sector(stripe*(disks-1)*sectors_per_chunk
+ chunk_offset, disks, disks-1, &dd_idx, &pd_idx, conf);
return pd_idx;
Expand Down

0 comments on commit 67581be

Please sign in to comment.