Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2131351imm; Thu, 20 Sep 2018 08:14:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY29WRtU6C6uPX5WkqzxKMwt3bco9BvTfMHLv3OR82Dhav/vXJnVdCNsjOIlcW//cqpM9pw X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr40315596pld.202.1537456453006; Thu, 20 Sep 2018 08:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537456452; cv=none; d=google.com; s=arc-20160816; b=BIYrybBqpn+0u41p0N8493Lk2yYk5y4yJxKOR70pNogzB11vBueD80HhykeWbAgThS /UETj0yYv7tS50p+pWiIEFzcZNCDPSJf9Ae3c1SdtVQFNV70qq+642f9xOMrOJCjsblU lBYjikgTMj909g2NM/FW16394PR/I8l3mXegyJPuFN0McVCXED3m2JH6pAE368Y1LYJt xD/YzRAahxsp8yONVzA4zTMkjKRlVdK6qNR+V8xE3BEqwz0K5ffLOtA725bz2gf9s8Ra 5PE03lYkE0xI/Y1ltx9FesBersUfOnX5vy/eF1eSNLavO6M2e20JwnS7QoScNy+w84e+ IN0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=1noejrIq0y1SALjSjxufjZflcUxpMLy32j0L3bEsGuM=; b=ux5Wg2FYFWVg2HbfPkfY1bcI/xpHod/yxbJGaJ3QFzj+aF+JTub9+knTGokKbPhFkW jgbqzBclL0AJeIyeVRjFh05hffxr64pIh94Wtri2HI7kJHzXBi+TOqiFFYJ7FsH+kOQh qf/h+E4FaqUuR7TUT14ris7VrDAzMisjPCX1p8nEdQdmsdIVFYPrT6Qvkt9lwd6yxcAS dZWKaHPEMgqlHjZqiw4h7K7V0HTW/wm4TmhC98bqewnS3p0hW43rOH9G2oaWLJhY4pbn d3jVVRQJb55cyk9YzukfQAukK/6mmiQl0fh5TneDwmjJgzUU24eP6cDemhM8Ie3OqJ6V IUWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si23760849pgi.690.2018.09.20.08.13.46; Thu, 20 Sep 2018 08:14:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387701AbeITU4U (ORCPT + 99 others); Thu, 20 Sep 2018 16:56:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39352 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733198AbeITU4U (ORCPT ); Thu, 20 Sep 2018 16:56:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id s14-v6so9776600wrw.6 for ; Thu, 20 Sep 2018 08:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1noejrIq0y1SALjSjxufjZflcUxpMLy32j0L3bEsGuM=; b=PgW6BZjXm4eqbALdVoTfm71ME4By5CekXNtYlHxS6+r3A6u2M1a3OumqdCJ3B/zQsT 59DKFYrV5coC/P3fDgPfsYih0VL7lkK1nlUZyS5mb+1qx1dL95pDn0O5bMXaI/E0MnvP LH+J8s9WyqxBHu9BSPF9Nxp9i30FVdst4Q7E7xD6LnIFQ5MlrPWjn1FRqqwKVagAH/pd +zCwOrGLNTioCrq1l89y3ya8TbWV0t6Fc7lw8aR+jnFa1KO6DZlIXuNRAqXd7qa/qu5n lDSZkl/buIQ9QAAg/4ElEsxYiiqbnI9mWL3Y1IqGM7KNkr3gYFMXY2fA4FsN8L1wKU7v BJAw== X-Gm-Message-State: ABuFfog4Mp2zLql2H30NyQ3a65ycWDfiioHlwvkSLjSntjc/DkjA8JRT UPF4YBL6Bamz+LcC8VmS0LSQbA== X-Received: by 2002:a5d:4143:: with SMTP id c3-v6mr4474134wrq.61.1537456342725; Thu, 20 Sep 2018 08:12:22 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id p89-v6sm55286201wrc.97.2018.09.20.08.12.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 08:12:21 -0700 (PDT) From: Miklos Szeredi To: David Howells Cc: Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] vfs_submount: use SB_SUBMOUNT instead of MS_SUBMOUNT Date: Thu, 20 Sep 2018 17:12:10 +0200 Message-Id: <20180920151214.15484-3-mszeredi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180920151214.15484-1-mszeredi@redhat.com> References: <20180920151214.15484-1-mszeredi@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The latter is for the legacy userspace API only and should not be used internally. Signed-off-by: Miklos Szeredi --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index a28b713164bf..865b6f2c5e7d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3297,7 +3297,7 @@ vfs_submount(const struct dentry *mountpoint, struct file_system_type *type, if (mountpoint->d_sb->s_user_ns != &init_user_ns) return ERR_PTR(-EPERM); - return vfs_kern_mount(type, MS_SUBMOUNT, name, data, data_size); + return vfs_kern_mount(type, SB_SUBMOUNT, name, data, data_size); } EXPORT_SYMBOL_GPL(vfs_submount); -- 2.14.3