All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: haver@vnet.ibm.com
Cc: MTDML <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH] UBI: introduce sequential counter
Date: Tue, 13 Feb 2007 17:40:01 +0200	[thread overview]
Message-ID: <1171381201.17314.60.camel@sauron> (raw)
In-Reply-To: <1171379484.4094.5.camel@localhost.localdomain>

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 (Битюцкий Артём)

      reply	other threads:[~2007-02-13 16:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08 20:02 [PATCH] UBI: introduce sequential counter Artem Bityutskiy
2007-02-08 22:16 ` Josh Boyer
2007-02-09  5:50   ` Jörn Engel
2007-02-09  9:19     ` Artem Bityutskiy
2007-02-09  9:12   ` Artem Bityutskiy
2007-02-09 13:12     ` Josh Boyer
2007-02-09 14:40       ` Artem Bityutskiy
2007-02-09 14:50         ` Josh Boyer
2007-02-09 14:54           ` Artem Bityutskiy
2007-02-13 15:11         ` Frank Haverkamp
2007-02-13 15:40           ` Artem Bityutskiy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1171381201.17314.60.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=haver@vnet.ibm.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.