Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281442
b: refs/heads/master
c: 361aba5
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh committed Jan 6, 2012
1 parent 0a2e9ee commit 8216ff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: ffefb8eaa367e8a5c14f779233d9da1fbc23d164
refs/heads/master: 361aba569f55dd159b850489a3538253afbb3973
2 changes: 1 addition & 1 deletion trunk/fs/exofs/ore.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ int ore_get_rw_state(struct ore_layout *layout, struct ore_components *oc,

/* first/last seg is split */
num_raid_units += layout->group_width;
sgs_per_dev = div_u64(num_raid_units, data_devs);
sgs_per_dev = div_u64(num_raid_units, data_devs) + 2;
} else {
/* For Writes add parity pages array. */
max_par_pages = num_raid_units * pages_in_unit *
Expand Down
6 changes: 5 additions & 1 deletion trunk/fs/exofs/ore_raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@ int _ore_add_parity_unit(struct ore_io_state *ios,
unsigned cur_len)
{
if (ios->reading) {
BUG_ON(per_dev->cur_sg >= ios->sgs_per_dev);
if (per_dev->cur_sg >= ios->sgs_per_dev) {
ORE_DBGMSG("cur_sg(%d) >= sgs_per_dev(%d)\n" ,
per_dev->cur_sg, ios->sgs_per_dev);
return -ENOMEM;
}
_ore_add_sg_seg(per_dev, cur_len, true);
} else {
struct __stripe_pages_2d *sp2d = ios->sp2d;
Expand Down

0 comments on commit 8216ff7

Please sign in to comment.