Thread (44 messages) 44 messages, 13 authors, 2007-07-10

Re: [patch 1/3] add the fsblock layer

From: Andi Kleen <hidden>
Date: 2007-06-25 08:58:29
Also in: linux-fsdevel, lkml

On Sun, Jun 24, 2007 at 01:18:42PM -0700, Arjan van de Ven wrote:
quoted
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help