Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7582980rwi; Mon, 24 Oct 2022 17:10:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pqgF5/HBE1Kw3ei7ynyqM2unIRICi3w2boYHf2l1Y3ql9yPKFV5kyS5RYB1dPoUdRU7Im X-Received: by 2002:a05:6402:4444:b0:458:f355:ce04 with SMTP id o4-20020a056402444400b00458f355ce04mr33469438edb.422.1666656655006; Mon, 24 Oct 2022 17:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666656654; cv=none; d=google.com; s=arc-20160816; b=q4D/lJcl+ymqKef+mRbrnMSr6xMp2m8QDpothvh/YVOG55bj4n+MiQn3UhAI3kEksr Z7dReVBJ6by4JBvvAfeTasFsNJQdNmrGkq8GG68HCSn8MScUwI0Ywv4vX/PbSNoQWIWG m2Dv/N7i4VeISA6uxHb0C6xoGmlPuOCThYHVveJ0/hl5DoeXkrX5iJsddIYEXr6Nbb3X L7zu58oaRff+uvDAUczARQEP6tv5hboLwXhkue7NbnfFy0H4YqPptkTA8YCR9Te2HsIl fX+Iij1P09+Txkl/Uf17H+vz9Ba9gAe694dM1DUzBJwDW6aapGgU1zk6BhpLFDybMxK2 f02A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=s91xDY46/UmvxL/BbiKwtpVduK2DFwtnpCyK7Eobe54=; b=YlTmvpbZZ5dWoAF5PJn/BMACqW2EqE/QpL8a1Bt3Yb4TTLHEUxkAYN/Nc30wM2p2zw 3GGJpJnijwEvuAs65pNilFBHQJn1tjNwJoytcQCXWaySY4tyVHONAIPgtt13MuOXM/Gr 2VBt+D50PsNAtAbDKCVB4gc/+vpJ031vuA/hbDjeH97cSlE5wr5A/66N3j6+8xC9/tvf 8kM6zBf6kYKiH5ekxDTHUWcZ9oH33K9SwhuaEaErOBLEyilKbW+3RlrfoHNWxtA5UJXE 7G/gUd91rahb3bfuWTlkG0CvgwVqHYtCZg6fPimHX97XdISaT3wAtVuKUQjMh5+eitPM b2aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=E6de1eoE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Xlf6I0b7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ek13-20020a056402370d00b0045d050f0fa3si1004628edb.565.2022.10.24.17.10.18; Mon, 24 Oct 2022 17:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=E6de1eoE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Xlf6I0b7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbiJXXxQ (ORCPT + 99 others); Mon, 24 Oct 2022 19:53:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbiJXXw5 (ORCPT ); Mon, 24 Oct 2022 19:52:57 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B0302FFA48 for ; Mon, 24 Oct 2022 15:10:40 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AACFC1F9E3; Mon, 24 Oct 2022 22:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666649407; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s91xDY46/UmvxL/BbiKwtpVduK2DFwtnpCyK7Eobe54=; b=E6de1eoEzFWCE4js3lU7EPO8jQeEJlAX3C9dqLR5sRz6OCvSQr7Ep9lbQlKQ5Ynk2DMviQ rO3IVfLulh4BIzfVU3im6fNasOg1Rjl486nS4qLGQxZlR324t2gKPev2UjePVt4sgfGBe7 MbMDhIzX05r0oDp1D69yW+or+JXF+q0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666649407; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s91xDY46/UmvxL/BbiKwtpVduK2DFwtnpCyK7Eobe54=; b=Xlf6I0b72opMbP09Be9ebVgMdzEmSKhhxyMfVknH9aaCeuIDBZrwPehFxMid7/ZPsJ19sn Z4huSRUFB1bnG9Bw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 723A213A79; Mon, 24 Oct 2022 22:10:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kN0UCj4NV2O9AwAAMHmgww (envelope-from ); Mon, 24 Oct 2022 22:10:06 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "David Disseldorp" , "Linux NFS Mailing List" Subject: Re: [PATCH] exportfs: use pr_debug for unreachable debug statements In-reply-to: <000A2614-4C72-444A-A1D3-7B259D99C70A@oracle.com> References: <20221021122414.20555-1-ddiss@suse.de>, <166656308707.12462.9861114416829680469@noble.neil.brown.name>, <000A2614-4C72-444A-A1D3-7B259D99C70A@oracle.com> Date: Tue, 25 Oct 2022 09:09:56 +1100 Message-id: <166664939677.12462.18426253960350585268@noble.neil.brown.name> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 25 Oct 2022, Chuck Lever III wrote: >=20 > > On Oct 23, 2022, at 6:11 PM, NeilBrown wrote: > >=20 > > On Fri, 21 Oct 2022, David Disseldorp wrote: > >> expfs.c has a bunch of dprintk statements which are unusable due to: > >> #define dprintk(fmt, args...) do{}while(0) > >> Use pr_debug so that they can be enabled dynamically. > >> Also make some minor changes to the debug statements to fix some > >> incorrect types, and remove __func__ which can be handled by dynamic > >> debug separately. > >>=20 > >> Signed-off-by: David Disseldorp > >=20 > > Reviewed-by: NeilBrown > >=20 > > Thanks, > > NeilBrown >=20 > I don't think we're the maintainers of expfs.c ? >=20 > $ scripts/get_maintainer.pl fs/exportfs/expfs.c > Christian Brauner (commit_signer:2/2=3D100%,authored:1= /2=3D50%,added_lines:3/6=3D50%,removed_lines:2/6=3D33%) > Al Viro (commit_signer:1/2=3D50%,authored:1/2=3D5= 0%,added_lines:3/6=3D50%,removed_lines:4/6=3D67%) > Miklos Szeredi (commit_signer:1/2=3D50%) > Amir Goldstein (commit_signer:1/2=3D50%) > linux-kernel@vger.kernel.org (open list) >=20 > But maybe MAINTAINERS needs to be fixed. There's no entry > there for fs/exportfs. Looking at recent commits, patches come in through multiple different trees. nfsd certainly has an interest in expfs.c. The only other user is name_to_handle/open_by_handle API. I see it as primarily nfsd functionality which is useful enough to be exported directly to user-space. (It was created by me when I was nfsd maintainer - does that count?) So I would support the suggestion of updating MAINTAINERS to include fs/exportfs/ in the NFSD section. Having said that - given your apparent preference of tracepoints for tracing in nfsd - I suspect you might ask for a somewhat different patch :-) Thanks, NeilBrown >=20 >=20 > >> --- > >> fs/exportfs/expfs.c | 8 ++++---- > >> 1 file changed, 4 insertions(+), 4 deletions(-) > >>=20 > >> diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c > >> index c648a493faf23..3204bd33e4e8a 100644 > >> --- a/fs/exportfs/expfs.c > >> +++ b/fs/exportfs/expfs.c > >> @@ -18,7 +18,7 @@ > >> #include > >> #include > >>=20 > >> -#define dprintk(fmt, args...) do{}while(0) > >> +#define dprintk(fmt, args...) pr_debug(fmt, ##args) > >>=20 > >>=20 > >> static int get_name(const struct path *path, char *name, struct dentry *= child); > >> @@ -132,8 +132,8 @@ static struct dentry *reconnect_one(struct vfsmount = *mnt, > >> inode_unlock(dentry->d_inode); > >>=20 > >> if (IS_ERR(parent)) { > >> - dprintk("%s: get_parent of %ld failed, err %d\n", > >> - __func__, dentry->d_inode->i_ino, PTR_ERR(parent)); > >> + dprintk("get_parent of %lu failed, err %ld\n", > >> + dentry->d_inode->i_ino, PTR_ERR(parent)); > >> return parent; > >> } > >>=20 > >> @@ -147,7 +147,7 @@ static struct dentry *reconnect_one(struct vfsmount = *mnt, > >> dprintk("%s: found name: %s\n", __func__, nbuf); > >> tmp =3D lookup_one_unlocked(mnt_user_ns(mnt), nbuf, parent, strlen(nbuf= )); > >> if (IS_ERR(tmp)) { > >> - dprintk("%s: lookup failed: %d\n", __func__, PTR_ERR(tmp)); > >> + dprintk("lookup failed: %ld\n", PTR_ERR(tmp)); > >> err =3D PTR_ERR(tmp); > >> goto out_err; > >> } > >> --=20 > >> 2.35.3 > >>=20 > >>=20 >=20 > -- > Chuck Lever >=20 >=20 >=20 >=20