Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38090
b: refs/heads/master
c: 927ffe7
h: refs/heads/master
v: v3
  • Loading branch information
Mark McLoughlin authored and Linus Torvalds committed Oct 3, 2006
1 parent 50372a5 commit 0524009
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: e4ff496db72473949ddfe29a37471969d2f1d4ee
refs/heads/master: 927ffe7c9a156e259aae31c07dd76072c459ec57
20 changes: 10 additions & 10 deletions trunk/drivers/md/dm-exception-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,23 +536,23 @@ static void persistent_commit(struct exception_store *store,
if (r)
ps->valid = 0;

/*
* Have we completely filled the current area ?
*/
if (ps->current_committed == ps->exceptions_per_area) {
ps->current_committed = 0;
r = zero_area(ps, ps->current_area + 1);
if (r)
ps->valid = 0;
}

for (i = 0; i < ps->callback_count; i++) {
cb = ps->callbacks + i;
cb->callback(cb->context, r == 0 ? 1 : 0);
}

ps->callback_count = 0;
}

/*
* Have we completely filled the current area ?
*/
if (ps->current_committed == ps->exceptions_per_area) {
ps->current_committed = 0;
r = zero_area(ps, ps->current_area + 1);
if (r)
ps->valid = 0;
}
}

static void persistent_drop(struct exception_store *store)
Expand Down

0 comments on commit 0524009

Please sign in to comment.