Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1324267rwb; Wed, 14 Dec 2022 08:54:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf75ZN7UOdtAayWFhbA2IUi0JclIyb2jFioAe5jz0FK829G1saVTFXdmuS9tYJTlIGlE+0T3 X-Received: by 2002:a17:906:cc55:b0:7c1:6981:d062 with SMTP id mm21-20020a170906cc5500b007c16981d062mr13024279ejb.72.1671036856628; Wed, 14 Dec 2022 08:54:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671036856; cv=none; d=google.com; s=arc-20160816; b=tlSXg30ci3/O7dh0oNhTKSOSWvPO8/dYPltChwvNepE9v316Uv/GyWs+p4pxJnwKfI MdovFKzq9Y8hGaby2FBmZLOMyFdRb6CBXfrX6JEUj475edu/hYHlqTOEwAH9MCwaJNga fp+vXcWKQjziiyBxCknNamsx/7wHUXUojCSapuO4MKLEDx1ya+C5M0+mdJEO+/zrIQ4H 1xq6AQKxaudOdnlHuYNkdWT6AXjLNG+Vm99YhKymMK9IjmKvc4PCp8RRLygRDHmBXm0m 2THwpyxNT2JCPQO1Zw2VbNuhg2HdtbzZIEl3S5zkg1v6iiUcWl19x9EnUhMf/2xc4uZ+ 3yLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=b98drRJeDpGIiAxndTbkPTPE8QhkO9cM+BtF8T6SqkQ=; b=uFv/yN9livBABwgVhFcU5rtZuU69tMPY1tFQPjEIc8L+gnmT69M2+7syIlQuXJvJJn /OxH11Cw3sr/duB44RbCrH1szGlonf/mRV55ZYPNStP6cr5Zch3ms6NERKDZHJRuLgLZ O2NQoYXUwbLwt8swaj4taEI0yv9m1cEGBoUGhP07Gwjrz5I0UXefz3ohDtxbBgYt6A3D obJ55Sh8qiXFDzeuFUc2mc9hPK23ozqcX4QjeOsyK+jfhZA4NvYYB/thjtkb/bWkKNVf /L5xeLwPOf0qFs3FhhBlgCHBtqyV4SwRRPZl+E/ejvWh9+vQgaVz4YwrSzTrGr5Xd5xU RdgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bfZLQh8q; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hf25-20020a1709072c5900b0078e11e92257si9739084ejc.333.2022.12.14.08.53.43; Wed, 14 Dec 2022 08:54:16 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=bfZLQh8q; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238743AbiLNQhb (ORCPT + 99 others); Wed, 14 Dec 2022 11:37:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbiLNQh3 (ORCPT ); Wed, 14 Dec 2022 11:37:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D419331; Wed, 14 Dec 2022 08:37:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9B62261B40; Wed, 14 Dec 2022 16:37:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED368C43396; Wed, 14 Dec 2022 16:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671035848; bh=zvv+vPRRo6jzZG+a+gegoT4F9zjoLrsxk+RITIkc/cA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bfZLQh8qtV2CerhiiZLadKDr7n7JbzA11RBg09s8p5kvrqBm7lctfyLwKjVVnmPnE NyRSrfClm+mH9m6az94WoqEtapgV33UHbIQ6JVHNHxds368UjQ847aO5CIWTRPsvt4 6Y3vYf/jKrqAw2kg3wWfC4mbx7DIm5IE5IWbf/+6NewqYwN4eZdkdddq8ryeMQog2m 1ituR4r2ocaYAKCFmlCB5uvtWRtNQkkoYM/qTx81EBtCebxxGjEc9sZzE80wKon6rN KhJGmw6r0z1XpECELZLtY3vhzs5cKuoQUUrwLq3dN0hcd6Ny5hiqDS9v6OETPy8Hr/ 9PtFOGlLdBR0Q== Received: by mail-qk1-f180.google.com with SMTP id j26so1480710qki.10; Wed, 14 Dec 2022 08:37:27 -0800 (PST) X-Gm-Message-State: ANoB5plj8CM3bG2rc3bo6kModR+E9ndeUBlsqEyMvGNW+W4vifNcGgsn zrShdoUTcWY2qPt98i7zOBvpGJiqiUZEKpEAqkE= X-Received: by 2002:a37:9a43:0:b0:6fe:c3d4:d9f4 with SMTP id c64-20020a379a43000000b006fec3d4d9f4mr12837348qke.646.1671035846942; Wed, 14 Dec 2022 08:37:26 -0800 (PST) MIME-Version: 1.0 References: <20221207084309.8499-1-richard@nod.at> <20221207084309.8499-4-richard@nod.at> <92B44C88-61B5-4450-B027-60F9F7A614FF@oracle.com> In-Reply-To: <92B44C88-61B5-4450-B027-60F9F7A614FF@oracle.com> From: Anna Schumaker Date: Wed, 14 Dec 2022 11:37:11 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] NFS: nfs_encode_fh: Remove S_AUTOMOUNT check To: Chuck Lever III Cc: Trond Myklebust , Linux NFS Mailing List , LKML , linux-fsdevel , Jeff Layton , Al Viro , Ian Kent , "chris.chilvers@appsbroker.com" , "david.young@appsbroker.com" , "luis.turcitu@appsbroker.com" , "david@sigma-star.at" , "benmaynard@google.com" , Richard Weinberger Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Dec 14, 2022 at 10:09 AM Chuck Lever III wrote: > > > > > On Dec 7, 2022, at 3:43 AM, Richard Weinberger wrote: > > > > Now with NFSD being able to cross into auto mounts, > > the check can be removed. > > > > Signed-off-by: Richard Weinberger > > --- > > fs/nfs/export.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/nfs/export.c b/fs/nfs/export.c > > index 01596f2d0a1e..0a5ee1754d50 100644 > > --- a/fs/nfs/export.c > > +++ b/fs/nfs/export.c > > @@ -42,7 +42,7 @@ nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent) > > dprintk("%s: max fh len %d inode %p parent %p", > > __func__, *max_len, inode, parent); > > > > - if (*max_len < len || IS_AUTOMOUNT(inode)) { > > + if (*max_len < len) { > > dprintk("%s: fh len %d too small, required %d\n", > > __func__, *max_len, len); > > *max_len = len; > > -- > > 2.26.2 > > > > I plan to take this through the nfsd tree, thus this one needs > an Ack from the NFS client maintainers. Acked-by: Anna Schumaker > > -- > Chuck Lever > > >