Re: [PATCH] UBI: introduce sequential counter

Artem Bityutskiy
2007-02-13T16:02:13Z

On Tue, 2007-02-13 at 16:11 +0100, Frank Haverkamp wrote:
> The 64bit nature could complicate the compare code a little, and
> we are limited to those 4KiB as you know. Mhm. It should be than
> a comparission of a 64bit value instead of a 32bit one.

With current 32 bit versions you have to take care of overflow. For
example, version 1 is newer then version 0xFFFFFFFA. I doubt comparing 2
64-bit variable with _no_ need to look it overflow is more difficult and
takes more code.

These 32 bit overflowing counters really introduce mess.

--
Best regards,
Artem Bityutskiy (Битюцкий Артём)