Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp398093ybg; Sun, 26 Jul 2020 08:06:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMoVcRk/F20GhNyuaDYJLuFER6B5b4d6Vd9pHrzA6EOh8ZQjNBffO9/eu7u2mItKYgXaOO X-Received: by 2002:a05:6402:b4c:: with SMTP id bx12mr17044527edb.157.1595775974206; Sun, 26 Jul 2020 08:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595775974; cv=none; d=google.com; s=arc-20160816; b=FDgccLYz7doLS/EZQV7ce8snAIacmdrWZtYWO4Gegbd1y0cn0tBSJjkzRjQkUniwTc DBJNB69QgxemwfLLXae/1lXDtTDd0MOKsHoTyyHBKs38wSwBH44FL19gIXb0HPzdpZmJ 2Dr7a0nd9BwpA/o6mAcd92+2GxsVnxU9D20uMKDmD7IB4/sKz64eAUhsM4Tv0kGncZx/ Kp9P41aQO4nnCzFLkdaNZClYb7SHhBHOhnKI/uDifPdCKPnhTL1UXUtnbfpr8tH8quO5 YPF2USD5Fx9IHDC5CRPnZpvCYDrd5GiVm0NFX2+4slLAzFB9pnHFgOX19cEX/l3OxzKJ slqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SQdEEUbS15XfNOnvBJj0vCvV6+m0XV9g2xcYAZ+hMD4=; b=TGEtf87OhcRNKVM7wgfiGLRzFf3UaDcaj/nbX40eKBdY443W9yiJlFUVaLrKbRuKZZ jErCrlVtwHQRmDBm32uIG5uhxVdD40CEzs59JouOSKv6o34+yV6Dye5qhRCWdVmR0FDu DiwPIImtJdiqkVNHb4KxFUE6yn12ONkgo2jYVPmITzdldhj/GDWxMuJ7CJq0/03Az5pj qCH87HNanC3fDnirDkAymaibNnI3NmftaCRlHQF5AH8L6rIBjTxMVIaRbZQZa11EALFm pdEcnDA1A4T9RVX5j0YYmTQAZGD9U+N8AE8DWyYGGtgrPDdfk2L0gLLwM5pZpYzxw26I PQtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YxnU7xEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 x9si4164178edj.121.2020.07.26.08.05.52; Sun, 26 Jul 2020 08:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YxnU7xEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbgGZPDx (ORCPT + 99 others); Sun, 26 Jul 2020 11:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbgGZPDw (ORCPT ); Sun, 26 Jul 2020 11:03:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE2CC0619D4; Sun, 26 Jul 2020 08:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=SQdEEUbS15XfNOnvBJj0vCvV6+m0XV9g2xcYAZ+hMD4=; b=YxnU7xECKgDZ4LqJfdWMsIcxEA yCfUcE3gTRygR1OvjtYJrDU3Bz1paMjy6nh9aMctdrc9x02/AF0mTDzlfwRI/UIdNsA0DGuyhGxG+ awRyoFbpxtSm3feI5LlsKLA8kZcUNh15jh+lTmOEMsJcmDjBTMdOr7ZbCZMeoWcRgcrxsl4VbVdnw yyrL6nGsYfdC8zf3Xt7LFsoZCMj5AvtvctzOQxWqy3xwMuxs8ssFmU8lyS8xkNG0dKqBf08p7UVI1 Cwf8EsgAfBAuY5/yvO+nJBZFfQrdydTuhw8kfer1VpDvEBbb2fuSox1nVc5xOWmW8Tk2knXuA9jg3 GH9QgDZQ==; Received: from [2001:4bb8:18c:2acc:2375:88ff:9f84:118d] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jziBd-0005f2-79; Sun, 26 Jul 2020 15:03:37 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Song Liu , Hans de Goede , Richard Weinberger , Minchan Kim , linux-mtd@lists.infradead.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Johannes Thumshirn Subject: [PATCH 01/14] fs: remove the unused SB_I_MULTIROOT flag Date: Sun, 26 Jul 2020 17:03:20 +0200 Message-Id: <20200726150333.305527-2-hch@lst.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726150333.305527-1-hch@lst.de> References: <20200726150333.305527-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last user of SB_I_MULTIROOT is disappeared with commit f2aedb713c28 ("NFS: Add fs_context support.") Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- fs/namei.c | 4 ++-- include/linux/fs.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 72d4219c93acb7..e9ff0d54a110a7 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -568,8 +568,8 @@ static bool path_connected(struct vfsmount *mnt, struct dentry *dentry) { struct super_block *sb = mnt->mnt_sb; - /* Bind mounts and multi-root filesystems can have disconnected paths */ - if (!(sb->s_iflags & SB_I_MULTIROOT) && (mnt->mnt_root == sb->s_root)) + /* Bind mounts can have disconnected paths */ + if (mnt->mnt_root == sb->s_root) return true; return is_subdir(dentry, mnt->mnt_root); diff --git a/include/linux/fs.h b/include/linux/fs.h index 41cd993ec0f686..236543605dd118 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1366,7 +1366,6 @@ extern int send_sigurg(struct fown_struct *fown); #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ -#define SB_I_MULTIROOT 0x00000008 /* Multiple roots to the dentry tree */ /* sb->s_iflags to limit user namespace mounts */ #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ -- 2.27.0