From: Andi Kleen Subject: Re: [patch 1/3] add the fsblock layer Date: 24 Jun 2007 17:28:39 +0200 Message-ID: References: <20070624014528.GA17609@wotan.suse.de> <20070624014613.GB17609@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Kernel Mailing List , Linux Memory Management List , linux-fsdevel@vger.kernel.org To: Nick Piggin Return-path: Received: from mx2.suse.de ([195.135.220.15]:59144 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbXFXOc5 (ORCPT ); Sun, 24 Jun 2007 10:32:57 -0400 In-Reply-To: <20070624014613.GB17609@wotan.suse.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Nick Piggin 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. 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. -Andi