From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D734C46470 for ; Thu, 9 May 2019 15:58:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D49382175B for ; Thu, 9 May 2019 15:58:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=brauner.io header.i=@brauner.io header.b="GnlrwmwA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbfEIP6X (ORCPT ); Thu, 9 May 2019 11:58:23 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:40002 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfEIP6W (ORCPT ); Thu, 9 May 2019 11:58:22 -0400 Received: by mail-oi1-f194.google.com with SMTP id r136so2277522oie.7 for ; Thu, 09 May 2019 08:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZmKRJy8bC2jPsRjYBZQf1PbasWAtkAkyGHPp3zfhImo=; b=GnlrwmwARyBEF6G6qHphDC4m2FLkpdJONbDPZPNo4W88PsQX3G+He/25U8fUl+rUP5 /8B4kBafrdJtFWJnMt8343eoZDa1mgw8iWHZwG8VeJTn4chJSKb65SrH1DyP/NuKac1o nUdZDZRMi84VtCE6YM5mTAc2kT42k34wrv4ZFiFrRTcXLP4bp+vGGQfHNZXhMVcSK72u ATzkw94k3UFwYQcv9exWIUqg0/mkXQyvI6EvDYV/XXJ9bS3QNlTuELUEFKraSck7QZ8K Ezb4ZOtzUlyieBTulqMqBTgNgERWfOzxVeIQG5vc14T1yFkPg4jCR+WEl86/DO3F/lbT tt0Q== 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:mime-version:content-transfer-encoding; bh=ZmKRJy8bC2jPsRjYBZQf1PbasWAtkAkyGHPp3zfhImo=; b=rL82OpVGFEbZQQQRn5MkZdp3VbxZF0tNOLcKiHHqwUwbpTfJ40JjKYi86BiyXLrQw4 SBg346o3Rd+8tqRnTxnmQ2trUyBiWmnEApLYVfqPlePKObg0GUZ0NS0Qrp5vIK0tCRK7 rtonpSboozJ8QV49hI1oImjRUviVVJvEeLPXLVo0Mu5jlP2rybrHQGT5Jc2LzFNRUV3k opOitUV1DW6NwdXVE05xQ0xgaX8OfOtbdNGMycnTeaQVr/mp442FLNGOsKxdVzrJKiMQ u/UZPNDVq5Jv25djJxPUlv9UeboWHBTJsMSQUCnEdt8WT/ERr1mFmVWELZMQTP4nTCdy P2PQ== X-Gm-Message-State: APjAAAWZf8dnG53RcMzsA1oWOYwhBMbIloU3+8E2A4w+7t9z6Jj8/13Z evutBNTxf1FaMvPqUoLRA/BNxA== X-Google-Smtp-Source: APXvYqwYnD6vM2zMcpu4GRsgCzizgCDDXYfnG+yegSVX9V6MBfMj4Qg46A6eglTOpbbg5LCNqczj3w== X-Received: by 2002:aca:ec89:: with SMTP id k131mr2039971oih.86.1557417501425; Thu, 09 May 2019 08:58:21 -0700 (PDT) Received: from localhost.localdomain ([172.56.6.91]) by smtp.gmail.com with ESMTPSA id a1sm1130991oiy.38.2019.05.09.08.58.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 08:58:20 -0700 (PDT) From: Christian Brauner To: viro@zeniv.linux.org.uk, dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Brauner Subject: [PATCH v2 2/2] fsopen: use square brackets around "fscontext" Date: Thu, 9 May 2019 17:58:01 +0200 Message-Id: <20190509155801.8369-2-christian@brauner.io> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509155801.8369-1-christian@brauner.io> References: <20190509155801.8369-1-christian@brauner.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the name of the anon inode fd "[fscontext]" instead of "fscontext". This is minor but most core-kernel anon inode fds already carry square brackets around their name: [eventfd] [eventpoll] [fanotify] [io_uring] [pidfd] [signalfd] [timerfd] [userfaultfd] For the sake of consistency lets do the same for the fscontext anon inode fd that comes with the new mount api. Signed-off-by: Christian Brauner --- v1: patch not present v2: - David Howells : - remove unneeded reference from commit message and split paragraph to place list of anon inode fds in between --- fs/fsopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fsopen.c b/fs/fsopen.c index a38fa8c616cf..83d0d2001bb2 100644 --- a/fs/fsopen.c +++ b/fs/fsopen.c @@ -92,7 +92,7 @@ static int fscontext_create_fd(struct fs_context *fc) { int fd; - fd = anon_inode_getfd("fscontext", &fscontext_fops, fc, + fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc, O_RDWR | O_CLOEXEC); if (fd < 0) put_fs_context(fc); -- 2.21.0