[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <467F6C8F.9040400@yahoo.com.au>
Date: Mon, 25 Jun 2007 17:19:43 +1000
From: Nick Piggin <nickpiggin@...oo.com.au>
To: Andi Kleen <andi@...stfloor.org>
CC: Nick Piggin <npiggin@...e.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Memory Management List <linux-mm@...ck.org>,
linux-fsdevel@...r.kernel.org
Subject: Re: [patch 1/3] add the fsblock layer
Andi Kleen wrote:
> Nick Piggin <npiggin@...e.de> writes:
>
>
> [haven't read everything, just commenting on something that caught my eye]
>
>
>>+struct fsblock {
>>+ atomic_t count;
>>+ union {
>>+ struct {
>>+ unsigned long flags; /* XXX: flags could be int for better packing */
>
>
> int is not supported by many architectures, but works on x86 at least.
Yeah, that would be nice. We could actually use this for buffer_head as well,
but saving 4% there isn't so important as saving 20% for fsblock :)
> 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.
Cool. It would probably be useful for other things as well.
--
SUSE Labs, Novell Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists