Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-ig0-f181.google.com ([209.85.213.181]:62647 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbaESRop (ORCPT ); Mon, 19 May 2014 13:44:45 -0400 Received: by mail-ig0-f181.google.com with SMTP id h3so3838841igd.14 for ; Mon, 19 May 2014 10:44:45 -0700 (PDT) Message-ID: <537A430A.40607@gmail.com> Date: Mon, 19 May 2014 13:44:42 -0400 From: Anna Schumaker MIME-Version: 1.0 To: Christoph Hellwig , Weston Andros Adamson CC: trond.myklebust@primarydata.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 8/8] pnfs: merge identical functions References: <1400512508-7530-1-git-send-email-dros@primarydata.com> <1400512508-7530-9-git-send-email-dros@primarydata.com> <20140519153402.GB21345@infradead.org> In-Reply-To: <20140519153402.GB21345@infradead.org> Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-nfs-owner@vger.kernel.org List-ID: On 05/19/2014 11:34 AM, Christoph Hellwig wrote: >> -static void pnfs_writehdr_free(struct nfs_pgio_header *hdr) >> +static void pnfs_pgio_header_free(struct nfs_pgio_header *hdr) >> { >> pnfs_put_lseg(hdr->lseg); >> nfs_pgio_header_free(hdr); >> } > I think it should also be mossible to simply call pnfs_put_lseg > from nfs_pgio_header_free. pnfs_put_lseg handles a NULL argument fine, > is stubbed out for the non-pnfs case, and the other callers should never > have it set. pnfs_put_lseg is compiled into the NFS v4 module, so depmod would complain about recursive module dependencies if it was called from the generic client. > > -- > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html