lkml.org 
[lkml]   [2007]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 1/3] add the fsblock layer
    On Sun, Jun 24, 2007 at 01:18:42PM -0700, Arjan van de Ven wrote:
    >
    > > Hmm, could define a macro DECLARE_ATOMIC_BITMAP(maxbit) that expands to the smallest
    > > possible type for each architecture. And a couple of ugly casts for set_bit et.al.
    > > but those could be also hidden in macros. Should be relatively easy to do.
    >
    > or make a "smallbit" type that is small/supported, so 64 bit if 32 bit
    > isn't supported, otherwise 32

    That wouldn't handle the case where you only need e.g. 8 bits
    That's fine for x86 too. It only hates atomic accesses crossing cache line
    boundaries (but handles them too, just slow)

    -Andi
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-06-25 11:01    [W:2.461 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site