Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id DE7C17F37 for ; Mon, 17 Jun 2013 11:02:32 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay1.corp.sgi.com (Postfix) with ESMTP id D4D598F804B for ; Mon, 17 Jun 2013 09:02:29 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) by cuda.sgi.com with ESMTP id iVZJktbC1bnNDu2g (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jun 2013 09:02:29 -0700 (PDT) Date: Mon, 17 Jun 2013 09:02:28 -0700 From: Christoph Hellwig Subject: Re: [PATCH 19/27] xfs: consolidate xfs_vnodeops.c into xfs_inode_ops.c Message-ID: <20130617160228.GB26043@infradead.org> References: <1371032567-21772-1-git-send-email-david@fromorbit.com> <1371032567-21772-20-git-send-email-david@fromorbit.com> <20130612135916.GA28988@infradead.org> <20130613013907.GC29338@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130613013907.GC29338@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Christoph Hellwig , xfs@oss.sgi.com On Thu, Jun 13, 2013 at 11:39:07AM +1000, Dave Chinner wrote: > i.e: > > kernel only -> kernel only -> shared with libxfs > > Once there's a clear boundary in the kernel code, > merging/simplifying stuff on either side of the boundary is easy to > do, but it's a secondary step. I'd consider this something for the > 3.12 cycle, not the upcoming 3.11 cycle. Much better. Btw, especially in inode land we should probably share even less code with userspace. Besides my old patches to kill the struct xfs_inode abuse in repair phase 7 there isn't too much use of it left. The db code uses inodes as temporary objects in the attrset code which looks everything but efficient, and the mkfs and repair code use it to create new files/directories. Not quite sure bringing in all the kernel code there makes so much sense given that we have other infrastructure for a lot of these in userspace anyway. > FWIW, now that I have the shared files in almost perfect sync, it > makes it much easier to make the change in the kernel tree, take the > patch, apply a couple of sed filters to it and then apply it > directly to the xfsprogs tree. I only have to do the work once now, > and so it's much faster to restructure the code now. I'm very happy to see this as I'd been aiming at it for a while. Any chance you can add a script to pull in kernel changes automatically while you're at it? _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs