Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp482006rwb; Wed, 7 Dec 2022 00:45:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf638SISPuym+8O3FztjIDjhuSBlICtW03eS2F/qlfga4OlRvW318ZEMo7qUQ1K2xBPVIHWe X-Received: by 2002:a17:90a:2b88:b0:219:a1e4:20e2 with SMTP id u8-20020a17090a2b8800b00219a1e420e2mr21194139pjd.182.1670402719298; Wed, 07 Dec 2022 00:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670402719; cv=none; d=google.com; s=arc-20160816; b=MMMX8p14S4e/Gt+4cQai6hzpKNOdeEsNhO4xIgNEPx+H+skpUzDrMWyrTDYBM1SZeL oWyAoXXVhmxemVKRfGK7BQTRq2b/k5vSw+4okM6LCN+ry9bW/AqQPdRQFDwpXC+EqOph JD4bBQlI6NlgBVs7OpRLoxkIaPiKPou+9IpDIbbkZmSl7fDBM2LicWw+F7RiwzfrijzK Q85AYc0EQriIZshVuo7e6QVzcTjZHrDqx9ge/C7FgeEsnPP5sonHplMd9gv4Vh2xVnRb z0u7uwy5v86aA9p5MTq1trbuKmYBrTOyPTw+nxaIKT3rjzoylcgdv8W7Hobq08Ar8+JO Mubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IOS6RKMqeVLSd+iJJkO/H605GXEyaZhD8544DqiztHM=; b=cO9P+fDkh8L4F0DnN/DhBOfQkJ10r3olr7iBpihK7vETMGTonsD5vi+LsKZ8KL559x mGtaJAjLxmrogAjWuRtiIykXv8J8AkDNMs9pHil0vW7ythmkTQU5aVq9l6U4Aicy6ZCM YcF5nF53Z+kbb3dRxGHMNIATsst2AOcTlM3WoebiX2vBt+uoqSurgh61/BixYJ3FVJhb dLCClSJ1EoQpFTpJQd4T+eERk4Ysdjbzykguer6ByZls7OTtNTEDpwqIfQCBfIjJ4qqY RboWonSRmr976yzyyjZC8Af+tbYzhBErbDOakFf73TTTZLSEmG7aobqMCVfZtoJnYniF S4tA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe7-20020a17090b4f8700b00200ad6b1554si1050024pjb.6.2022.12.07.00.45.08; Wed, 07 Dec 2022 00:45:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbiLGInc (ORCPT + 99 others); Wed, 7 Dec 2022 03:43:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLGIna (ORCPT ); Wed, 7 Dec 2022 03:43:30 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99642AE56; Wed, 7 Dec 2022 00:43:27 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 02DD864BA9DA; Wed, 7 Dec 2022 09:43:26 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Uj5DSkEG5Sw5; Wed, 7 Dec 2022 09:43:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id AF7AF64BA9AE; Wed, 7 Dec 2022 09:43:25 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QksFaxl55wz9; Wed, 7 Dec 2022 09:43:25 +0100 (CET) Received: from blindfold.corp.sigma-star.at (unknown [82.150.214.1]) by lithops.sigma-star.at (Postfix) with ESMTPSA id E753464BA9B1; Wed, 7 Dec 2022 09:43:24 +0100 (CET) From: Richard Weinberger To: linux-nfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, jlayton@kernel.org, chuck.lever@oracle.com, anna@kernel.org, trond.myklebust@hammerspace.com, viro@zeniv.linux.org.uk, raven@themaw.net, chris.chilvers@appsbroker.com, david.young@appsbroker.com, luis.turcitu@appsbroker.com, david@sigma-star.at, benmaynard@google.com, Richard Weinberger Subject: [PATCH 3/3] NFS: nfs_encode_fh: Remove S_AUTOMOUNT check Date: Wed, 7 Dec 2022 09:43:09 +0100 Message-Id: <20221207084309.8499-4-richard@nod.at> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20221207084309.8499-1-richard@nod.at> References: <20221207084309.8499-1-richard@nod.at> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SPF_PERMERROR 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 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_l= en, struct inode *parent) dprintk("%s: max fh len %d inode %p parent %p", __func__, *max_len, inode, parent); =20 - 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 =3D len; --=20 2.26.2