Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312102
b: refs/heads/master
c: 537632e
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh committed Jul 20, 2012
1 parent fbf99c0 commit 252a8a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 62b62ad873f2accad9222a4d7ffbe1e93f6714c1
refs/heads/master: 537632e0a54a5355cdd0330911d18c3b773f9cf7
24 changes: 12 additions & 12 deletions trunk/fs/exofs/ore_raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,26 @@ static void _sp2d_reset(struct __stripe_pages_2d *sp2d,
{
unsigned data_devs = sp2d->data_devs;
unsigned group_width = data_devs + sp2d->parity;
unsigned p;
int p, c;

if (!sp2d->needed)
return;

for (p = 0; p < sp2d->pages_in_unit; p++) {
struct __1_page_stripe *_1ps = &sp2d->_1p_stripes[p];

if (_1ps->write_count < group_width) {
unsigned c;
for (c = data_devs - 1; c >= 0; --c)
for (p = sp2d->pages_in_unit - 1; p >= 0; --p) {
struct __1_page_stripe *_1ps = &sp2d->_1p_stripes[p];

for (c = 0; c < data_devs; c++)
if (_1ps->page_is_read[c]) {
struct page *page = _1ps->pages[c];
if (_1ps->page_is_read[c]) {
struct page *page = _1ps->pages[c];

r4w->put_page(priv, page);
_1ps->page_is_read[c] = false;
}
r4w->put_page(priv, page);
_1ps->page_is_read[c] = false;
}
}

for (p = 0; p < sp2d->pages_in_unit; p++) {
struct __1_page_stripe *_1ps = &sp2d->_1p_stripes[p];

memset(_1ps->pages, 0, group_width * sizeof(*_1ps->pages));
_1ps->write_count = 0;
_1ps->tx = NULL;
Expand Down

0 comments on commit 252a8a6

Please sign in to comment.