Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423389AbWBBIw0 (ORCPT ); Thu, 2 Feb 2006 03:52:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423387AbWBBIw0 (ORCPT ); Thu, 2 Feb 2006 03:52:26 -0500 Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:12986 "EHLO ppsw-0.csi.cam.ac.uk") by vger.kernel.org with ESMTP id S1423384AbWBBIwZ (ORCPT ); Thu, 2 Feb 2006 03:52:25 -0500 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Date: Thu, 2 Feb 2006 08:52:11 +0000 (GMT) From: Anton Altaparmakov To: Grant Grundler cc: "Chen, Kenneth W" , "'Christoph Hellwig'" , "'Akinobu Mita'" , Linux Kernel Development , linux-ia64@vger.kernel.org Subject: Re: [PATCH 1/12] generic *_bit() In-Reply-To: <20060202000820.GI16471@esmail.cup.hp.com> Message-ID: References: <20060201193933.GA16471@esmail.cup.hp.com> <200602012141.k11LfCg32497@unix-os.sc.intel.com> <20060201220903.GE16471@esmail.cup.hp.com> <20060202000820.GI16471@esmail.cup.hp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 30 On Wed, 1 Feb 2006, Grant Grundler wrote: > 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. Oh, I hadn't noticed those before. Thanks. The name seems a bit silly as I imagine most fs drivers would be able to use them and there already are ext2 and minix versions. Probably ought be renamed to a more generic name like le_test_bit() or something... Best regards, Anton -- Anton Altaparmakov (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/ - 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/