Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4079288ybl; Tue, 21 Jan 2020 12:26:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwW4IrvWSE9WMxEZMv3wiBpsMRfEsbH9+l8DTS9JDplKgAFRnFx/QJmMy6BJbL6DobPZxiM X-Received: by 2002:aca:ba46:: with SMTP id k67mr4449619oif.38.1579638391373; Tue, 21 Jan 2020 12:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579638391; cv=none; d=google.com; s=arc-20160816; b=JmE5FIPPaD2Ulc2if7f9lM3Dwdmk7ewNBWbaicXGC2Ic0wRRhnQXM5NynDjIRFF/38 gX6Sh+frmjuNnuzxUUFMx1qXTQG/uHLFiXMwwJAhjwgk3CApC/Cigtds/hwymNED1C6I mW7mzuTrjhaWPGHsPAbwLqg8S8iaOFFffs5PeKformuIjemg5iDvfiLjLogKRUOdEbg2 +HYWFP6He6bo3SvJF3DWKbb9UpNG2FR4PaAcPVNU6yjieFe9p/XQhcaeTKImhx3h5E5n lAc9p8CV283GQKwRAiAjmyesqD2Zfm+RO6uqvLFof+YhKhjGGnV61C73fI2TXUBJGXby 1Z9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nGbRU0QoA8cAsdV3Uj88kvqrGDwyiCroqu0p7ZXLRrM=; b=xlsz6JL624jXL2x8X6/U3T2xvcg0rtAm5rdgljSJq4jv5uJ/+I+RJpqSfm1RkCloCc bUUgFh3E0b7geZKegW2R6jzXmZ5QJd3T6xWpZqzmZV+qM0PQyZZa/IEW3Y5XngEnx+Gg YXPPEvIwRmKf9vTDP15tJjXS45XRt1ENpj9JKfrw9wF8jKodyR0zShrLIhRlNZB4m3os T64klfncPj4dwCV+u+A0F7RixX2Ora2avYXnFr5AQ3ERjRCHpHikMvGpBhaN+qj8k/I7 QMiVVhvUfZvrAaYnITZblB4Z/hlYgBfl3J8e9QD7Lxu7cVbBHjca95krA1Z/nnS3WVH9 XBZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si23583433otl.54.2020.01.21.12.26.09; Tue, 21 Jan 2020 12:26:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727383AbgAUU0I (ORCPT + 99 others); Tue, 21 Jan 2020 15:26:08 -0500 Received: from fieldses.org ([173.255.197.46]:37712 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbgAUU0I (ORCPT ); Tue, 21 Jan 2020 15:26:08 -0500 Received: by fieldses.org (Postfix, from userid 2815) id B65C71C15; Tue, 21 Jan 2020 15:26:07 -0500 (EST) Date: Tue, 21 Jan 2020 15:26:07 -0500 From: "J. Bruce Fields" To: Alex Shi Cc: Chuck Lever , Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] locked: remove nlmsvc_decode_norep/grantedres Message-ID: <20200121202607.GB25691@fieldses.org> References: <1579595682-251483-1-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1579595682-251483-1-git-send-email-alex.shi@linux.alibaba.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jan 21, 2020 at 04:34:42PM +0800, Alex Shi wrote: > These 2 macros are never used after first git commit Linux-2.6.12-rc2. > So guess better to remove them. I'm not fond of these macros. If we're going to doing anything to them, I'd rather just get rid of the entirely (including the PROC macro) and write out the initialization of nlmsvc_procedures. Yes, it'd probably add another 80 or so lines to the file, but it'd be readable without referring to the macro definitions. And it would be less confusing to people who grep for the users of the various proc/encode/decode methods and can't find them. --b. > > Signed-off-by: Alex Shi > Cc: "J. Bruce Fields" > Cc: Chuck Lever > Cc: Trond Myklebust > Cc: Anna Schumaker > Cc: linux-nfs@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > fs/lockd/svcproc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c > index d0bb7a6bf005..8b7565c71863 100644 > --- a/fs/lockd/svcproc.c > +++ b/fs/lockd/svcproc.c > @@ -534,12 +534,10 @@ static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp) > */ > > #define nlmsvc_encode_norep nlmsvc_encode_void > -#define nlmsvc_decode_norep nlmsvc_decode_void > #define nlmsvc_decode_testres nlmsvc_decode_void > #define nlmsvc_decode_lockres nlmsvc_decode_void > #define nlmsvc_decode_unlockres nlmsvc_decode_void > #define nlmsvc_decode_cancelres nlmsvc_decode_void > -#define nlmsvc_decode_grantedres nlmsvc_decode_void > > #define nlmsvc_proc_none nlmsvc_proc_null > #define nlmsvc_proc_test_res nlmsvc_proc_null > -- > 1.8.3.1