From patchwork Thu Nov 17 19:11:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 21880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp577856wrr; Thu, 17 Nov 2022 11:15:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wwD0moLs5HqaeBbEG2wRYDyPcvz3F+SQ3AAc/SVAnuzP5uEGMhztUaBW0480w6m5uf9oW X-Received: by 2002:a17:906:17c9:b0:782:fd8e:9298 with SMTP id u9-20020a17090617c900b00782fd8e9298mr3324357eje.640.1668712532953; Thu, 17 Nov 2022 11:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668712532; cv=none; d=google.com; s=arc-20160816; b=wIFmBhA0NcWWc+20CCxxSW5W+YC06BgWZFhcx7hVhWN6Nh5x2ABMZsCVoFG88PGznK VmvCRdZRnwRolzRAuvWiYc6EUJQ9Ksc6QGhxaJ3v8ha7LqaXojBU5HS7QMPJMm/8ZCmP woDwflzXkxi0qEe7Z4t53leSzXUzbRxColz4rEWmCKBKa9zr2wowOJ1YHF8nNqEZm/JB gqftWtD2j3OLRMT6axn6EOgG2RwO8b7hHIjAVe1rdkILUxcaLRpRjfel5/a1/aSBx4OU k/gF7U2N2zJh3S6heIveSNlS2BkFxSD9S3/NigKwscII3Cz6SIvaoIvnFu41bM/bB7Bl ljyA== 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=7J3Cf5V8jVpa8RhPn5NeaoBF71EbfxWm8CfazAJHL44=; b=QZoXrQOcpALcIGDNty689bGiDq5O/RanHTybH6XwMmLH3bSR6qQF0m7a66iUnEZEWC DzlJg2Ny7IMkqsro4zJkpmd7TPhJn+bkwFxe1pFCTdHXJkfQGijAZDcsY/Bgqev0hYx1 RTqyliTIwOomJqwnw9/tlmvkJLT6R661bbIVLYXUrXi8FgQ1LDz9Y8U+/T7fnH+TKYmR LM1pESkLF/KxNK+k+rFP8bkDtNaXsXnV4VMJjaplJAXTmzLZsUQ141T4AiH+xGeN098F i9ghjpPJe3IpME0G/uDt15RFnVeBmvTYmldgvN2uYDLBphTSAXxuYSS368tzKuwQ0u/m lLyA== 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 di12-20020a170906730c00b007470b52f94esi1409989ejc.199.2022.11.17.11.15.08; Thu, 17 Nov 2022 11:15:32 -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 S240607AbiKQTMU (ORCPT + 99 others); Thu, 17 Nov 2022 14:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240557AbiKQTMM (ORCPT ); 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 61383606A1; 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 6BD1663E5149; 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 10032) with ESMTP id Ki1dMyhX9hbu; Thu, 17 Nov 2022 20:12:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C5E7463E516C; Thu, 17 Nov 2022 20:12:07 +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 O7S3p5HUjSNY; Thu, 17 Nov 2022 20:12:07 +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 4985B63E5149; Thu, 17 Nov 2022 20:12:07 +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, Richard Weinberger Subject: [PATCH 1/3] NFSD: Teach nfsd_mountpoint() auto mounts Date: Thu, 17 Nov 2022 20:11:49 +0100 Message-Id: <20221117191151.14262-2-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 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?1749771912498801251?= X-GMAIL-MSGID: =?utf-8?q?1749771912498801251?= Currently nfsd_mountpoint() tests for mount points using d_mountpoint(), this works only when a mount point is already uncovered. In our case the mount point is of type auto mount and can be coverted. i.e. ->d_automount() was not called. Using d_managed() nfsd_mountpoint() can test whether a mount point is either already uncovered or can be uncovered later. Signed-off-by: Richard Weinberger --- fs/nfsd/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index f650afedd67f..157f0df0e93a 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -160,7 +160,7 @@ int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) return 1; if (nfsd4_is_junction(dentry)) return 1; - if (d_mountpoint(dentry)) + if (d_managed(dentry)) /* * Might only be a mountpoint in a different namespace, * but we need to check. From patchwork Thu Nov 17 19:11:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 21879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp577576wrr; Thu, 17 Nov 2022 11:14:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7U09O0VbXxkLncyMZzUY0Jh7FFSO3zpEsHD6e3MN4borzEn2hE5EeKfoW+4uGRma9f2NjF X-Received: by 2002:a17:906:e21a:b0:7a1:e4c2:fb0b with SMTP id gf26-20020a170906e21a00b007a1e4c2fb0bmr3319486ejb.464.1668712497124; Thu, 17 Nov 2022 11:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668712497; cv=none; d=google.com; s=arc-20160816; b=cOQVG6PXwV10Im7wbk0a0SWdawOqRkhvNWV7TgLePSHPOdAlMWktf9OWpfgvIXwDxx a5iCnmhyS1yxgc+2Nx+xCZqu1a3nDHfu0hwqz+hffvmwlqC02cuew7KRlfLyZX+jqbfF 1tvXir6II1jMpHle24bNsCecReyzzkyA9XQOSH7N5Hj8pkiwdmvl0Ad/QcZJcbxLarco 3xUaZLrgJ0fmJ9AVYieG5/KmqKOSR7maT+DXttoqJd+zatV1QTnfKdGD0UTRPnuY1I87 jsVE8Lt4OXCAUE+I7OMYNaHuwsLbpt8TTduohZ7wqZCaJiLTBmZ6CvVnni2KRk9bc14O um0Q== 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=QR0/lKEZnaThVPieVeCchFgTpddjH7qsjQ88VzoxFKY=; b=x6m4C3QcQfhiS5Og4bvimsxokLkp5jhlWRa5OaWRyFImSo6na66z5uuN9E5Wx2teSF ffvHBfcv4WmvEEOcZ0X+xKO2hkfYnfpCE5a+Y0AaVbEMIzPHlEmAig45oWH+hgv2YzSr Rc7MmOf3rfldNDTIkgg6rEPKClp+uT6BzeCeXS60PDZlGR0w/Vf+4/WlYDwFYDlmkeVo W0/qtkY/FkNkFz+zT/2k0MkrCYRiTQNalOrSaTOPaR9EMW+dulAj5KA1STvRhZI2+rOX +6FFEK7krgbMWxrg2gX7V77XIZfCNRPgTDs5R/aMwVeq1rqwhmx/W+tPn7hzzZL+Osr8 kUcQ== 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 v16-20020a056402175000b00462352ef503si1398676edx.518.2022.11.17.11.14.32; Thu, 17 Nov 2022 11:14:57 -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 S240450AbiKQTMR (ORCPT + 99 others); Thu, 17 Nov 2022 14:12:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240555AbiKQTMM (ORCPT ); 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 61D0287567; 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 953E963E516C; 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 10032) with ESMTP id 2d-a3it2RGeZ; 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 4A76063E516F; 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 uDGT4ROq8FZk; 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 C32F463E516B; Thu, 17 Nov 2022 20:12:07 +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, Richard Weinberger Subject: [PATCH 2/3] fs: namei: Allow follow_down() to uncover auto mounts Date: Thu, 17 Nov 2022 20:11:50 +0100 Message-Id: <20221117191151.14262-3-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 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?1749771875102198394?= X-GMAIL-MSGID: =?utf-8?q?1749771875102198394?= This function is only used by NFSD to cross mount points. If a mount point is of type auto mount, follow_down() will not uncover it. Add LOOKUP_AUTOMOUNT to the lookup flags to have ->d_automount() called when NFSD walks down the mount tree. Signed-off-by: Richard Weinberger --- fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index 578c2110df02..000c4b84e6be 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1462,7 +1462,7 @@ int follow_down(struct path *path) { struct vfsmount *mnt = path->mnt; bool jumped; - int ret = traverse_mounts(path, &jumped, NULL, 0); + int ret = traverse_mounts(path, &jumped, NULL, LOOKUP_AUTOMOUNT); if (path->mnt != mnt) mntput(mnt); From patchwork Thu Nov 17 19:11:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Weinberger X-Patchwork-Id: 21881 Return-Path: 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 + 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 ); 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 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 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 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?1749771925969213959?= X-GMAIL-MSGID: =?utf-8?q?1749771925969213959?= 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;