From patchwork Thu Sep 20 15:12:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 10607949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BCCC112B for ; Thu, 20 Sep 2018 15:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D326289D8 for ; Thu, 20 Sep 2018 15:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BC8D2DC43; Thu, 20 Sep 2018 15:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 009CF289D8 for ; Thu, 20 Sep 2018 15:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387757AbeITU4U (ORCPT ); Thu, 20 Sep 2018 16:56:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43499 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732393AbeITU4T (ORCPT ); Thu, 20 Sep 2018 16:56:19 -0400 Received: by mail-wr1-f65.google.com with SMTP id k5-v6so9770216wre.10 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=Bx2GGUhVqFIGCBzScuZOTmyNfGg+SEq+JnwwUY5pLE8kE8GWoo0BjO6sYTCZ5zpUcr s+KHY8wJAK1+p/BP/CUBK0WhIN8R+VbOClb8wi3tdP8NzeWfOojsotKptv0czPFm/DNV u6hCpMyOz8rZzppWH3x2iLD4nBOfR6pkR3L6NFmpwuKBjAPFTYaBE7mdXdZFv8FKt7S6 k0GLC7IVR9Sq+X9uJUQNtBEAWbUN4oCfFLudwJhvlBbCsx5aQlthlUBALnmHS5KnyM5D 9a1fmCiG669ze8sHiin+pLTHKobYZ5+6EcoQ9Kp4OFPi5lcHTjEx2dfXq7RJ2QICyBl9 1HZQ== X-Gm-Message-State: ABuFfogXfsMWtRcOiqTytKo/VyVBPRBGgN/hhmiszEPRyB5dYxENVq5t 9w/YiFUWw8CB7n0d7B66kKN7hw== X-Google-Smtp-Source: ACcGV621PbIi5/hsdxOfuRVMoo+XMyRk8rWjyobAaqfwxQQzcmZ4WPv+2Lf0pZxrLzC7fXna6i0wHg== 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);