Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4862488pxv; Tue, 27 Jul 2021 19:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygB8Ec7S4K8j6OLi6/z+MTHyeF/PGdv803xXLV+0Q0SIhTpnGJSlSkxqFtsX2QSFao9/3s X-Received: by 2002:a05:6402:26d1:: with SMTP id x17mr6265266edd.126.1627439003448; Tue, 27 Jul 2021 19:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627439003; cv=none; d=google.com; s=arc-20160816; b=tjqvJDooRYndCRcIx6ZyD5dSgOc/vvRI2zjHZFeDjq92R+QvVFJ3qyOk8DfqaQxp8e flQ8Pn4H4peRmhUKUiomIo6RrD13u8wxIJ6ODxHHF66Gv42EAnozkUfTVk+HDPGgjQm8 ZelRH4OoQJ4GCwcM30tdv4OfJl/ThLNhtv9G8rtQheyGdw1U6OnMyzQSDZ1eIHQlqArz b28Dl1BwCy0vfhnT3gBmj67B7TeZLmn6aXnu5AL2I7376Jzk7S+4hYW+So1kUb8VsPiY EaB10CRK7sXU/WRLPMgM9+3a4cfg9EHWBgR5n1CY8riMk5nCsy4esHXkvCo5b1MpE/Ol 9pUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xoUX5pu9ef8SFF2XmaKTpd8Tv9itk93Uo+/ndRjzaCs=; b=kChqrk3DCMwJCkdTHDxrMnoDWLVzwFSeMeb4UQ6UhUZsvJJ1LSEALJzZXTfia5BUFW 183hZoVT1o6vPUNCu9rSmM/B73rRKzZNMik1VUo2mqrd3C1RSK8v9nOxZS7+cejyNQHW fa9HUV81WnDX03r/8g/ZyEiDLpIZJBbKxgHR9XhM9ZpdHPjAHbK4t5CbHGWBUoqn/VPf c2TMos1NrlYrmb8Hadxra+nHA+236LM9ii1NdJbFaRMcR0g0dPVuGkS2NoadUg6Z3nF6 c+22wykFXueJb7AkEJnlqWePzKBCCfCwjCZhPvDw2B5p2B22i7NmgfcWGJ0/hm5p0cLe 4+gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si5701804edb.418.2021.07.27.19.23.01; Tue, 27 Jul 2021 19:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233394AbhG1CVA (ORCPT + 99 others); Tue, 27 Jul 2021 22:21:00 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:40582 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbhG1CU7 (ORCPT ); Tue, 27 Jul 2021 22:20:59 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Z7N-004Wpx-W6; Wed, 28 Jul 2021 02:16:22 +0000 Date: Wed, 28 Jul 2021 02:16:21 +0000 From: Al Viro To: NeilBrown Cc: Christoph Hellwig , Josef Bacik , "J. Bruce Fields" , Chuck Lever , Chris Mason , David Sterba , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 05/11] VFS: new function: mount_is_internal() Message-ID: References: <162742539595.32498.13687924366155737575.stgit@noble.brown> <162742546552.32498.14429836898036234922.stgit@noble.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162742546552.32498.14429836898036234922.stgit@noble.brown> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jul 28, 2021 at 08:37:45AM +1000, NeilBrown wrote: > This patch introduces the concept of an "internal" mount which is a > mount where a filesystem has create the mount itself. > > Both the mounted-on-dentry and the mount's root dentry must refer to the > same superblock (they may be the same dentry), and the mounted-on dentry > must be an automount. And what happens if you mount --move it?