Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932888AbZACVN3 (ORCPT ); Sat, 3 Jan 2009 16:13:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752508AbZACVNS (ORCPT ); Sat, 3 Jan 2009 16:13:18 -0500 Received: from palinux.external.hp.com ([192.25.206.14]:51469 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756067AbZACVNR (ORCPT ); Sat, 3 Jan 2009 16:13:17 -0500 Date: Sat, 3 Jan 2009 14:12:59 -0700 From: Matthew Wilcox To: Christoph Hellwig Cc: Andi Kleen , Chris Mason , Andrew Morton , linux-kernel@vger.kernel.org, linux-fsdevel , linux-btrfs Subject: Re: Btrfs for mainline Message-ID: <20090103211258.GB2002@parisc-linux.org> References: <1230722935.4680.5.camel@think.oraclecorp.com> <20081231104533.abfb1cf9.akpm@linux-foundation.org> <1230765549.7538.8.camel@think.oraclecorp.com> <87r63ljzox.fsf@basil.nowhere.org> <20090103191706.GA2002@parisc-linux.org> <20090103195034.GA27541@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090103195034.GA27541@infradead.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2425 Lines: 68 On Sat, Jan 03, 2009 at 02:50:34PM -0500, Christoph Hellwig wrote: > On Sat, Jan 03, 2009 at 12:17:06PM -0700, Matthew Wilcox wrote: > > It's no worse than XFS (which still has its own implementation of > > 'synchronisation variables', > > Which are a trivial wrapper around wait queues. I have patches to kill > them, but I'm not entirely sure it's worth it I'm not sure it's worth it either. > > a (very thin) wrapper around mutexes, > > nope. It's down to: typedef struct mutex mutex_t; but it's still there. > > a > > (thin) wrapper around rwsems, > > Which are needed so we can have asserts about the lock state, which > generic rwsems still don't have. At some pointer Peter looked into > it, and once we have that we can kill the wrapper. Good to know. Rather like btrfs's wrappers around mutexes then ... > > > - compat.h needs to go > > > > Later. It's still there for XFS. > > ? XFS still has 'fs/xfs/linux-2.6'. It's a little bigger than compat.h, for sure, and doesn't contain code for supporting different Linux versions, sure. But it's still a compat layer. > > > - there should be manpages for all the ioctls and other interfaces. > > > > I wonder if Michael Kerrisk has time to help with that. Cc'd. > > Actually a lot of the ioctl API don't just need documentation but > a complete redo. That's true at least for the physical device > management and subvolume / snaphot ones. That's a more important critique than Andi's. Let's take care of that. > From painfull experience with a lot of things, including a filesystem > you keep on mentioning it's clear that once stuff is upstream there > is very little to no incentive to fix these things up. I don't think that's as true of btrfs as it was of XFS -- for example, Chris has no incentive to keep compatibility with IRIX, or continue to support CXFS. I don't think 'getting included in kernel' is Chris' goal, so much as it is a step towards making btrfs better. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- 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/