Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118497
b: refs/heads/master
c: f1cd14a
h: refs/heads/master
i:
  118495: eefb2e9
v: v3
  • Loading branch information
Andre Noll authored and NeilBrown committed Nov 6, 2008
1 parent f817494 commit b1db914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a53a6c85756339f82ff19e001e90cfba2d6299a8
refs/heads/master: f1cd14ae52985634d0389e934eba25b5ecf24565
2 changes: 2 additions & 0 deletions trunk/drivers/md/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ static linear_conf_t *linear_conf(mddev_t *mddev, int raid_disks)

min_sectors = conf->array_sectors;
sector_div(min_sectors, PAGE_SIZE/sizeof(struct dev_info *));
if (min_sectors == 0)
min_sectors = 1;

/* min_sectors is the minimum spacing that will fit the hash
* table in one PAGE. This may be much smaller than needed.
Expand Down

0 comments on commit b1db914

Please sign in to comment.