Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx12.netapp.com ([216.240.18.77]:2526 "EHLO mx12.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822AbaDYNCm (ORCPT ); Fri, 25 Apr 2014 09:02:42 -0400 Message-ID: <535A5CEE.30808@netapp.com> Date: Fri, 25 Apr 2014 09:02:38 -0400 From: Anna Schumaker MIME-Version: 1.0 To: Christoph Hellwig , Anna Schumaker CC: , Subject: Re: [PATCH 07/17] NFS: Create a common rw_header_alloc and rw_header_free function References: <1397768981-12856-1-git-send-email-Anna.Schumaker@Netapp.com> <1397768981-12856-8-git-send-email-Anna.Schumaker@Netapp.com> <20140421133252.GA30954@infradead.org> <535522B2.9030401@gmail.com> <53554637.1080006@gmail.com> <20140425121200.GA22948@infradead.org> In-Reply-To: <20140425121200.GA22948@infradead.org> Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-nfs-owner@vger.kernel.org List-ID: On 04/25/2014 08:12 AM, Christoph Hellwig wrote: > On Mon, Apr 21, 2014 at 12:24:23PM -0400, Anna Schumaker wrote: >>> Okay. I'll rework everything into the pageio_ops and see how it looks! Maybe I'll see what I can do about updating the pnfs patches while I'm at it. >> I remember my issue with adding to the nfs_pageio_ops now. The file, object and block layouts along with the generic pnfs code all have their own read and write pageio_ops. Changing all of these seemed more tedious than adding a new struct only in the read and write code. > > Indeed, there's more instances in the pnfs code. I was hoping your > pending pnfs patches were addressing that, and the general code > duplication between the pnfs and "classic" I/O code. Sorry, my pnfs patches only touch pnfs.c. I'm hoping to get help from people who know more about each layout driver once they can take a look at what I did here. My new plan is to put them on top of Dros' work. > > I guess it's best to put in your patches as-is for now, and maybe in the > future we can get rid of the pageio_ops once more code is shared with > the pnfs path. > Sure. I'll post a v2 later today that addresses rearranging variables in the combined structs. Anna