From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC/PATCH 2/4] fs/mm: execute in place (3rd version) Date: Sat, 28 May 2005 10:05:41 +0100 Message-ID: <20050528090541.GA19153@infradead.org> References: <1116866094.12153.12.camel@cotte.boeblingen.de.ibm.com> <1116869420.12153.32.camel@cotte.boeblingen.de.ibm.com> <20050524093029.GA4390@in.ibm.com> <42930B64.2060105@freenet.de> <20050524133211.GA4896@in.ibm.com> <42933B7A.3060206@freenet.de> <1117043475.26913.1540.camel@dyn318077bld.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Carsten Otte , suparna@in.ibm.com, Linux Kernel Mailing List , linux-fsdevel , schwidefsky@de.ibm.com, Andrew Morton Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:33415 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S262510AbVE1JFz (ORCPT ); Sat, 28 May 2005 05:05:55 -0400 To: Badari Pulavarty Content-Disposition: inline In-Reply-To: <1117043475.26913.1540.camel@dyn318077bld.beaverton.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, May 25, 2005 at 10:51:17AM -0700, Badari Pulavarty wrote: > This is my crude version of the cleanup patch to reduce the > duplication of code. > > Basically, I added __generic_file_aio_read_internal() and > __generic_file_aio_write_nolock_internal() to take a read/write > handlers instead of defaulting to do_generic_file_read() or > generic_file_buffered_write(). > > This way I was able to reduce 129 lines of your code. > This patch is on top of your current set and I haven't even > tried compiling it. Needs cleanup. > > > BTW, function & variable names are too long and/or ugly & doesn't > make sense - need fixing. > > Christoph/Suparna/Andrew, Comments ? I don't like this patch a lot. It adds another indirection to the code, and still leaves the O_DIRECT branches in the XIP path that don't make any sense. If you're looking for a way to consolidate duplicated code some abtraction for the iovec verification makes most sense, as there's very little other code duplicated.