Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250450
b: refs/heads/master
c: 7703f09
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed May 16, 2011
1 parent 799013c commit 009ee57
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e9ef7b5f25d31c5660fb4a87f4b40ac48070fcb7
refs/heads/master: 7703f09ded1b8719d2defe0f61215b4a08702ffa
4 changes: 4 additions & 0 deletions trunk/fs/ubifs/replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ static int replay_buds(struct ubifs_info *c)
{
struct bud_entry *b;
int err, uninitialized_var(free), uninitialized_var(dirty);
unsigned long long prev_sqnum = 0;

list_for_each_entry(b, &c->replay_buds, list) {
err = replay_bud(c, b->bud->lnum, b->bud->start, b->bud->jhead,
Expand All @@ -723,6 +724,9 @@ static int replay_buds(struct ubifs_info *c)
free, dirty, b->bud->jhead);
if (err)
return err;

ubifs_assert(b->sqnum > prev_sqnum);
prev_sqnum = b->sqnum;
}

return 0;
Expand Down

0 comments on commit 009ee57

Please sign in to comment.