Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61231
b: refs/heads/master
c: 76eafe4
h: refs/heads/master
i:
  61229: 9575954
  61227: ab24cd0
  61223: 0688490
  61215: c369ba9
v: v3
  • Loading branch information
Brijesh Singh authored and Artem Bityutskiy committed Jul 18, 2007
1 parent cc4eee8 commit c757f2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2f176f79877937082ce052977e552a75e23a73d1
refs/heads/master: 76eafe479ec30dd72b8cf209c4f576eac3c93112
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/ubi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ int ubi_scan_add_used(const struct ubi_device *ubi, struct ubi_scan_info *si,
if (IS_ERR(sv) < 0)
return PTR_ERR(sv);

if (si->max_sqnum < sqnum)
si->max_sqnum = sqnum;

/*
* Walk the RB-tree of logical eraseblocks of volume @vol_id to look
* if this is the first instance of this logical eraseblock or not.
Expand Down Expand Up @@ -563,9 +566,6 @@ int ubi_scan_add_used(const struct ubi_device *ubi, struct ubi_scan_info *si,
sv->last_data_size = be32_to_cpu(vid_hdr->data_size);
}

if (si->max_sqnum < sqnum)
si->max_sqnum = sqnum;

sv->leb_count += 1;
rb_link_node(&seb->u.rb, parent, p);
rb_insert_color(&seb->u.rb, &sv->root);
Expand Down

0 comments on commit c757f2b

Please sign in to comment.