From patchwork Wed Dec 7 08:43:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 30698 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp59632wrr; Wed, 7 Dec 2022 00:45:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5c/pdh6MafccekEbES+zwWDhHUJxYRmHb3evm+hkiSxAirKqAgYbzm8/XwNswgY0B8eU1z X-Received: by 2002:a17:90a:2e0c:b0:218:c1d3:4cd8 with SMTP id q12-20020a17090a2e0c00b00218c1d34cd8mr78732299pjd.37.1670402742806; Wed, 07 Dec 2022 00:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670402742; cv=none; d=google.com; s=arc-20160816; b=a34c82evISALZ51a6i+ZGBCuOZVlL2lHCrGEb6L4dZIMBQfXTswqGELfujX+KjX8vr 2OncIfYQpEBLZHC9EGleovwUUHL2LZn+RnsnAO70X32mVKrBv/f5jju3SAZ/HPCEtMA7 1Y2Wmssk3r5Za0LD0NUnSgtR4SBEzyXJvu8zS8wrJd9FJv+wpDJHle6+ACLPcDjCU9AU srff7H+Cvda3uEHODmsOIfJzLl9Qs2GAfXZEY2iY/GRW9FOGTote7CC9j+j1izl+Y1++ ueN9TZsezk3G50Vb3QBJiGXg6Dm11sgW0hmXVejG4F+bcd/LhEK2O/Rt/R/5WjevJ8kN KlCA== 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=lIuP3R1JC6/TCF0sjmlgFJD4WXL/RsxTlhx9/V4y3tPlDuomrVGG2rFw4JLzKgH2hM ufCeX+hj119rkTGou3WF8VfjNBddXVDUrLEJAPrePHBbmTYwEPONA4/Gl75ZrTIGJQya bagCwF+HXkbL1Jj6UGKoO/38H4nMevu65tuqckxBNrY3qEk3wblc5LJPJLimy3kFeS2l 1WcyRsW1eVav9+NWJ/e3vZpaIXyfSmBj1j1N6ehOtI/tFuAytaVFPIk89YL1US3AE7lC 1EgqyiOFKbwxbh4BOzSW8fTeF+BqUb+sJ+KtJe2a4eM4eODruSnER+qtzl4b4hdGO1kq ejuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a17090ac58100b002191e510e08si866391pjt.168.2022.12.07.00.45.30; Wed, 07 Dec 2022 00:45:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbiLGIng (ORCPT + 99 others); Wed, 7 Dec 2022 03:43:36 -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 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751544226722944972?= X-GMAIL-MSGID: =?utf-8?q?1751544226722944972?= Now with NFSD being able to cross into auto mounts, the check can be removed. Signed-off-by: Richard Weinberger Acked-by: Anna Schumaker --- 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;