From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98935C432C3 for ; Wed, 20 Nov 2019 15:30:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B465206B6 for ; Wed, 20 Nov 2019 15:30:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VL6/zb5z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730220AbfKTPaD (ORCPT ); Wed, 20 Nov 2019 10:30:03 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:24590 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730145AbfKTP16 (ORCPT ); Wed, 20 Nov 2019 10:27:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574263677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q0JqdtdvWpDH0/z44SL3BP0QhXk+xbUOP8E9mjHoWrs=; b=VL6/zb5zEL/l7HNLtW31jXqF/xIEfUQijXMpzTdFO6w0T75arUubxqrwEwlTOT2pi3DiBY grPMRKSiRYEgSfa+vG6v9t1xr7ft0bZ274WD5oMme/KpvH6vD0kUaFg9x7H5YkH6RoLYZZ 4N8+CprKpImMvvqusvlO60b20s5i6PE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-111-LolnuL5aMqa6vpo2lsZ_bA-1; Wed, 20 Nov 2019 10:27:54 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9977C107ACC7; Wed, 20 Nov 2019 15:27:52 +0000 (UTC) Received: from coeurl.usersys.redhat.com (ovpn-123-90.rdu2.redhat.com [10.10.123.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7474046E76; Wed, 20 Nov 2019 15:27:52 +0000 (UTC) Received: by coeurl.usersys.redhat.com (Postfix, from userid 1000) id 3A3192095B; Wed, 20 Nov 2019 10:27:50 -0500 (EST) From: Scott Mayhew To: anna.schumaker@netapp.com, trond.myklebust@hammerspace.com Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 05/27] nfs: don't bother setting/restoring export_path around do_nfs_root_mount() Date: Wed, 20 Nov 2019 10:27:28 -0500 Message-Id: <20191120152750.6880-6-smayhew@redhat.com> In-Reply-To: <20191120152750.6880-1-smayhew@redhat.com> References: <20191120152750.6880-1-smayhew@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: LolnuL5aMqa6vpo2lsZ_bA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Al Viro nothing in it will be looking at that thing anyway Reviewed-by: David Howells Signed-off-by: Al Viro --- fs/nfs/nfs4super.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index d0237d8ffa2b..a0b66f98f6ba 100644 --- a/fs/nfs/nfs4super.c +++ b/fs/nfs/nfs4super.c @@ -233,12 +233,10 @@ struct dentry *nfs4_try_mount(int flags, const char *= dev_name, =09dfprintk(MOUNT, "--> nfs4_try_mount()\n"); =20 =09export_path =3D data->nfs_server.export_path; -=09data->nfs_server.export_path =3D "/"; =09root_mnt =3D nfs_do_root_mount( =09=09=09nfs4_create_server(mount_info, &nfs_v4), =09=09=09flags, mount_info, =09=09=09data->nfs_server.hostname); -=09data->nfs_server.export_path =3D export_path; =20 =09res =3D nfs_follow_remote_path(root_mnt, export_path); =20 @@ -271,12 +269,10 @@ static struct dentry *nfs4_referral_mount(struct file= _system_type *fs_type, =09=09return ERR_PTR(-ENOMEM); =20 =09export_path =3D data->mnt_path; -=09data->mnt_path =3D "/"; =09root_mnt =3D nfs_do_root_mount( =09=09=09nfs4_create_referral_server(mount_info.cloned, =09=09=09=09=09=09 mount_info.mntfh), =09=09=09flags, &mount_info, data->hostname); -=09data->mnt_path =3D export_path; =20 =09res =3D nfs_follow_remote_path(root_mnt, export_path); =09dprintk("<-- nfs4_referral_mount() =3D %d%s\n", --=20 2.17.2