From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Grundler Date: Thu, 02 Feb 2006 00:08:20 +0000 Subject: Re: [PATCH 1/12] generic *_bit() Message-Id: <20060202000820.GI16471@esmail.cup.hp.com> List-Id: References: <20060201193933.GA16471@esmail.cup.hp.com> <200602012141.k11LfCg32497@unix-os.sc.intel.com> <20060201220903.GE16471@esmail.cup.hp.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Anton Altaparmakov Cc: Grant Grundler , "Chen, Kenneth W" , 'Christoph Hellwig' , 'Akinobu Mita' , Linux Kernel Development , linux-ia64@vger.kernel.org On Wed, Feb 01, 2006 at 10:49:08PM +0000, Anton Altaparmakov wrote: > Err, searching by anything other than bytes is useless for a file system > driver. Otherwise you get all sorts of disgustingly horrible allocation > patterns depending on the endianness of the machine... Well, tell that to ext2/3 maintainers since they introduced the ext2_test_bit() and friends. They do require LE handling of the bit array since that's an on-disk format. See how big endian machines (parisc/ppc/sparc/etc) deal with it in asm/bitops.h. grant