Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131009
b: refs/heads/master
c: 852c8bf
h: refs/heads/master
i:
  131007: 512be15
v: v3
  • Loading branch information
Andre Noll authored and NeilBrown committed Feb 6, 2009
1 parent 2c85a3d commit 88cdee7
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 4706b349f4a8312d31b3d0cf61fe721699356920
refs/heads/master: 852c8bf484a0e17ee27f413ef26e87f522af5607
6 changes: 3 additions & 3 deletions trunk/drivers/md/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ static inline dev_info_t *which_dev(mddev_t *mddev, sector_t sector)
{
dev_info_t *hash;
linear_conf_t *conf = mddev_to_conf(mddev);
sector_t idx = sector >> conf->sector_shift;

/*
* sector_div(a,b) returns the remainer and sets a to a/b
*/
sector >>= conf->sector_shift;
(void)sector_div(sector, conf->spacing);
hash = conf->hash_table[sector];
(void)sector_div(idx, conf->spacing);
hash = conf->hash_table[idx];

while (sector >= hash->num_sectors + hash->start_sector)
hash++;
Expand Down

0 comments on commit 88cdee7

Please sign in to comment.