Message ID | 20221117191151.14262-4-richard@nod.at |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp577972wrr; Thu, 17 Nov 2022 11:15:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ilPlZ55Zl0zg1tWlXAifbiTAOrhYWPSn3FABHVcofRpwEc3TogHybWSmO25RXbSpe5Hfo X-Received: by 2002:a17:906:4d16:b0:78b:15dc:2355 with SMTP id r22-20020a1709064d1600b0078b15dc2355mr3284619eju.306.1668712545407; Thu, 17 Nov 2022 11:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668712545; cv=none; d=google.com; s=arc-20160816; b=YJ2MJUZSz8LFqnWd+uxafZaq7rCBJgbMyDxq5JUm313PaZfe1+s79aQyMWhkcUtuNC tSS4fpve+SyGW3s6w9KlqzXm9VZoc/wWHipKJLFB+VtT6WIXVxd745gjyQgVgSHoqA9B GWh7xs21Mb5Bh5fGwLj5GGXdJpmYLPrN4cYNfEj4ubbGFNT/wYmgdaldo6OagMciExAP jjaik8gdjL4Xa+gZIAcJUxHF2lUvtz4SEyNlhTBsJ7ax4UNWHLZxKRBzNPDjOF9JVO5z gJH7MU7rxRHHNR1zOeK6xDXzeqVpn46XY5mptUFPM1uEiwGcB5iLGgNjmgsMun3ILt3f YSqA== 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=WIH2uoe7I4OdptShfvJ3a/WJkiqDnjAiAZ3FMeHIy6IYDT2hX/oqmABCGWl88hOqMl qP0W4TZAhhhDwekvca1alaCZnE00CbApAFwqGaXs9BjsdmGxSNhfZUWQG+1CHJpAH+Fj S3BNNxLqc563jFsgrEFFaK/3T9HKsCD7Fb/Aw22+nJm7ZylFfymdsglCoSRMX9Q7BXa/ /UiCe7kc4u8eWi44EPl2/wo86lplS8DHKKMfqYVfuS6oQ+swMBzfKVJ9qvQtU6KZYBQK VEpPh2agFImADduZi3wqid76Y3a0ytOgs4ah722Apq3XzXBZOg3xJaM88eM4Yys+y4/9 D28w== 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 hc8-20020a170907168800b007ae85c3b7b3si1377060ejc.362.2022.11.17.11.15.20; Thu, 17 Nov 2022 11:15:45 -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 S240618AbiKQTM1 (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 17 Nov 2022 14:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240560AbiKQTMM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Nov 2022 14:12:12 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73E6587569; Thu, 17 Nov 2022 11:12:10 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 320B163E5175; Thu, 17 Nov 2022 20:12:09 +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 EeudFGW_NLvE; Thu, 17 Nov 2022 20:12:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id CBA1063E516B; Thu, 17 Nov 2022 20:12:08 +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 IduuldTnhFni; Thu, 17 Nov 2022 20:12:08 +0100 (CET) Received: from blindfold.corp.sigma-star.at (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id 4918F63E5168; Thu, 17 Nov 2022 20:12:08 +0100 (CET) From: Richard Weinberger <richard@nod.at> 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, Richard Weinberger <richard@nod.at> Subject: [PATCH 3/3] NFS: nfs_encode_fh: Remove S_AUTOMOUNT check Date: Thu, 17 Nov 2022 20:11:51 +0100 Message-Id: <20221117191151.14262-4-richard@nod.at> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20221117191151.14262-1-richard@nod.at> References: <20221117191151.14262-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749771925969213959?= X-GMAIL-MSGID: =?utf-8?q?1749771925969213959?= |
Series |
NFS: NFSD: Allow crossing mounts when re-exporting
|
|
Commit Message
Richard Weinberger
Nov. 17, 2022, 7:11 p.m. UTC
Now with NFSD being able to cross into auto mounts,
the check can be removed.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
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;