Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1798103ybl; Thu, 30 Jan 2020 06:14:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzz/AbosEHTRZt9MioD9o2xnmL6iatsi1NJaluasV1SM89EKzAAJlNMqs3GvBtiqpxDuIKv X-Received: by 2002:aca:f10:: with SMTP id 16mr2863797oip.117.1580393679599; Thu, 30 Jan 2020 06:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580393679; cv=none; d=google.com; s=arc-20160816; b=zgoOakiVe6pmEDLTUTGm1GBVf8A151sICITX6f3YnDxGIXqpcFN53pbHoyh2DqupXd B59Tb4mGUXP7GPAGzdbkp2wAs16VHtt0BCTs4tb0UVdf9udeduEFI7CsqAqILsqKuJDk R6wbWrz5VGwrY0Y/Gp+HxL9p7axYZ0jw6NfG3X8tD1aSedH3S4j5K2xnfam+KHjpjLc7 BOJDYPfKz8HXIxkMT9Pwe65n8+FoqJ3jiASMmOqKtGFs71gLiFqLp8cWZpvnyu5lSAS+ L1Ul+HpGV0O4LmIwl6a0KYhESvfn3zamkSNS1/sGFyA1zNox/5bpCJb3GhOo1b+ZkOw1 2tnw== 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=4mNYsTSPjO5TfGo74cJ3yfP1Vhj3+BFsDYmmGv/P4MQ=; b=LaTRuyXLLoKpj+p5o51icDJtDig93sHTcvglleAOJwmQeTd16fgcBT5aYeoNAnMq+P xBjhI7OefHzpOfcHW+ClAtSn+kno2bCKsg06AgHVcO8aLkNAIsuz83ON2zt/HYYWpiAI +7ZK2XAVd6W/d8lUQRThy97ZOhk0kG2n45ooWC53/IIFBgSKTqPfGlMmgNKDVoE71fsA Bc6jdds/piB2lfu5rzqHk3tbE2Ph98ExjAjB1bZDuM8DYksR5SDfzFzRJnc3gNN4XFN2 1g8/G4RCuv4banlzA3Rfbb4or/SJKEEYmwQ5HF3LmUjFjHXuQsW1EMywzlkqFpI0YfZw 6q6w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si1106856otk.29.2020.01.30.06.14.26; Thu, 30 Jan 2020 06:14:39 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727266AbgA3ONO (ORCPT + 99 others); Thu, 30 Jan 2020 09:13:14 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:59783 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbgA3ONO (ORCPT ); Thu, 30 Jan 2020 09:13:14 -0500 Received: from [109.134.33.162] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ixAZE-0008IN-2q; Thu, 30 Jan 2020 14:13:12 +0000 Date: Thu, 30 Jan 2020 15:13:11 +0100 From: Christian Brauner To: Al Viro Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , linux-kernel@vger.kernel.org, Aleksa Sarai , David Howells , Eric Biederman Subject: Re: [PATCH 01/17] do_add_mount(): lift lock_mount/unlock_mount into callers Message-ID: <20200130141311.zm54wadpeipckoqk@wittgenstein> References: <20200119031423.GV8904@ZenIV.linux.org.uk> <20200119031738.2681033-1-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200119031738.2681033-1-viro@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 19, 2020 at 03:17:13AM +0000, Al Viro wrote: > From: Al Viro > > preparation to finish_automount() fix (next commit) > > Signed-off-by: Al Viro Just a naming nit below. Acked-by: Christian Brauner > --- > fs/namespace.c | 47 ++++++++++++++++++++++++----------------------- > 1 file changed, 24 insertions(+), 23 deletions(-) > > diff --git a/fs/namespace.c b/fs/namespace.c > index 2fd0c8bcb8c1..5f0a80f17651 100644 > --- a/fs/namespace.c > +++ b/fs/namespace.c > @@ -2697,45 +2697,32 @@ static int do_move_mount_old(struct path *path, const char *old_name) > /* > * add a mount into a namespace's mount tree > */ > -static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags) > +static int do_add_mount(struct mount *newmnt, struct mountpoint *mp, > + struct path *path, int mnt_flags) Maybe this should now be named do_add_mount_locked() so callers know that they need to do locking themselves? But that's bikeshedding... Christian