Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6672663pxv; Thu, 29 Jul 2021 22:34:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU3cuXGBkMiynGql2TNxYXcngYfKvrdXujVRVzpAa0KKx4zCMQ2/p3FpgCPKy80kQndGCS X-Received: by 2002:a02:8805:: with SMTP id r5mr3572jai.83.1627623281937; Thu, 29 Jul 2021 22:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627623281; cv=none; d=google.com; s=arc-20160816; b=NHgKfgVX7FAo3ipWBUWETdgmIP2QNAQ6XzeCipWr2sX+n0CEborrs5r/2myVCzn6EO 6pUKbMw8j9qJKYkE/PAlimceng59S+iYGVzzMzlPEffl5Ql7NDtZDxe4xoY27xVkbKZs ONS44616dC7FqOlIp/TZZ5HjErL4EjspZhkTQJYkF4ZEc2RqQQjFpMFSPrXgyLREovZX UzYXEDvQxyigPC9XxVFWbPF2FS6vcUGlMROLNRs+8PMdNWA1H20aejvHY34zyrjmK+qu 8fZeyO+rTwsWeZQIZwWXBVYpjMh9QIcgYfCUaQ3FET/Vkx8gKWTo4GFxADsa5Du0XxAP Tjnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=U23+/hZjJxbH5NKPlHP4VCQ6o249NRYzE/t/5htL4+k=; b=QM4CpR1BS+ZMIhOvsThvqxkRxfZ1yaWQOeZWcIVtX1mY0QtxNdoNyEwp8QEg86HyDa e2ZW+2n/VhUBSbci2tcaryPEh3rEWsr/sXkzLN1/IwfpVbFBi2hyGqa6jOhNIrwN+ETl BDLJq/WTyVvK6Hd1TAqB6z0Pn49FZdOWvK1nq8swH+jsbBf2AWvkcKEhMx+Clvrw2NRq 0i/T018TNqvNYheE7EPY4O396aW8KYXKqRthn4CLT2wRXXMw+VPyjqIBBjroMWd5nAxt bHXXABNm38w6h0NKjpouXbt9ymu3I5otCLT21rhfso2Cl3XxEMeduEpJdMDgE8oBeGu/ LWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=A13dI3Bn; dkim=neutral (no key) header.i=@suse.de; 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 r6si648861iov.48.2021.07.29.22.34.29; Thu, 29 Jul 2021 22:34:41 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=A13dI3Bn; dkim=neutral (no key) header.i=@suse.de; 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 S236158AbhG3Fdi (ORCPT + 99 others); Fri, 30 Jul 2021 01:33:38 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:50578 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbhG3Fdi (ORCPT ); Fri, 30 Jul 2021 01:33:38 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B7EE52234C; Fri, 30 Jul 2021 05:33:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627623212; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U23+/hZjJxbH5NKPlHP4VCQ6o249NRYzE/t/5htL4+k=; b=A13dI3Bnye6A+xR11hb9a02sSAIJFMavYVMgSGF43ZK+etvdcpJbgxWiBRoVRBpP5G+98Z kDQZA8Fo77LaIN1cGRyWmiSy0BOT/hW8mBhEXyUqSEZYRLzZ/MkJ3uQu4EjEA1q9iIFJDw RzHvvAjmOauK1qFhz8LJgTpQJQC+Vko= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627623212; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U23+/hZjJxbH5NKPlHP4VCQ6o249NRYzE/t/5htL4+k=; b=lcUuFGfY/zgFx4jyK69l3f7/++5RKWlQsF3uhCiAhwa8vY4ztg0+TBLvxWySJQJ5BpQAHb eb9B/Qng16X0WNDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CAFD513BF9; Fri, 30 Jul 2021 05:33:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /EKHISmPA2HIeQAAMHmgww (envelope-from ); Fri, 30 Jul 2021 05:33:29 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Al Viro" 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 04/11] VFS: export lookup_mnt() In-reply-to: References: <162742539595.32498.13687924366155737575.stgit@noble.brown>, <162742546551.32498.5847026750506620683.stgit@noble.brown>, Date: Fri, 30 Jul 2021 15:33:26 +1000 Message-id: <162762320688.21659.7949785958006573635@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 30 Jul 2021, Al Viro wrote: > On Wed, Jul 28, 2021 at 08:37:45AM +1000, NeilBrown wrote: > > In order to support filehandle lookup in filesystems with internal > > mounts (multiple subvols in the one filesystem) reconnect_path() in > > exportfs will need to find out if a given dentry is already mounted. > > This can be done with the function lookup_mnt(), so export that to make > > it available. > > IMO having exportfs modular is wrong - note that fs/fhandle.c is > * calling functions in exportfs > * non-modular > * ... and not going to be modular, no matter what - there > are syscalls in it. > > I agree - it makes sense for exportfs to be non-module. It cannot be module if FHANDLE is enabled, and if you don't want FHANDLE you probably don't want EXPORTFS either. Thanks, NeilBrown