diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-06-30 16:11:59 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-07-05 18:47:08 +0300 |
commit | fe96efc1a3c049f0a1bcd9b65e0faeb751ce5ec6 (patch) | |
tree | 5c750ab134bb1037eeaf5baa8d9eee6196566226 /drivers/mtd/ubi/scan.h | |
parent | 0c6c7fa1313fcb69cae35e34168d2e83b8da854a (diff) | |
download | linux-stable-fe96efc1a3c049f0a1bcd9b65e0faeb751ce5ec6.tar.gz linux-stable-fe96efc1a3c049f0a1bcd9b65e0faeb751ce5ec6.tar.bz2 linux-stable-fe96efc1a3c049f0a1bcd9b65e0faeb751ce5ec6.zip |
UBI: nicify image sequence number handling
Move the image seq. number handling from I/O level to the scanning
lever, where it really belongs to. Move the @image_seq_set variable
to the @struct ubi_scan_info structure, which exists only during
scanning.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.h')
-rw-r--r-- | drivers/mtd/ubi/scan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/scan.h b/drivers/mtd/ubi/scan.h index 61df208e2f20..1017cf12def5 100644 --- a/drivers/mtd/ubi/scan.h +++ b/drivers/mtd/ubi/scan.h @@ -102,6 +102,7 @@ struct ubi_scan_volume { * @mean_ec: mean erase counter value * @ec_sum: a temporary variable used when calculating @mean_ec * @ec_count: a temporary variable used when calculating @mean_ec + * @image_seq_set: indicates @ubi->image_seq is known * * This data structure contains the result of scanning and may be used by other * UBI sub-systems to build final UBI data structures, further error-recovery @@ -124,6 +125,7 @@ struct ubi_scan_info { int mean_ec; uint64_t ec_sum; int ec_count; + int image_seq_set; }; struct ubi_device; |