Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1782301ybh; Fri, 13 Mar 2020 07:20:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvXzBwhkATjEKinC0BwP6xSevGCUZaKmrzn1xoxUO0NpNQFOboPcM4f03WweY0AU8DHyzlv X-Received: by 2002:a05:6808:d7:: with SMTP id t23mr7227081oic.69.1584109227652; Fri, 13 Mar 2020 07:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584109227; cv=none; d=google.com; s=arc-20160816; b=knFWN/M48sNu4oMC4gMAV+FtA+lmGocbHT6RQIkVEFI5+k4Lx8kPOX/DdFmf0/XFOj 4ko3vWD0Tnuid2UzJpWmyVuER6f3i+7BbvNQcX4AA1EgF07jOTcBZDM60XifGeKhrEEK w4cx9n3yf/R2IachnunsxWGrZQ9OBWrXOEvOLTwQBbhksCThH6vSQyhHRwhwJdZp0Ugy JwZip+gx60fbBhpKAGxv6XLq/qdMi21Wbe3F9qP7M2YaFSCaureMVRbofUe16c50DCnF ggpYKxaF0gYsTG/jNJvksdsgZDRqKFIO++Fp8ksgppGQ8VK2fl7T3mq5eL2ofToigG2g JKmA== 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=AXcY6MDSVJv1yxIWxrsJKqKAz6bNXa81t/OzdKh0qM4=; b=RK8Cht/5BWwvQU2a38S9zPAWBz0GPFBGuPwV2a9yY+ROuc0azfoiqIiOx5y8De8hWU zYMCViHJJAwIng/y0x2diNUH1/IXhey5rztL4xpnUSEjp6xDs/nJYwGbI00uFabtC+uq m3EkQWS5dH95bcyqnrZLN5SxDiLNntdoNHY1J7N/Z6AzB3jC0rgrWu10ERcWw2btzhH5 89z9BOUjUSy9wxUkVtBwPzoB7cwvAr8S7BtpfDKvIWvS8gAA2rMmvqHGv3rV8lVlTLAI ED7/4JIqbnGEJSIOY2YQG/sSnOqwWWYDd+cdwqghvy3IYwtRmIdNUlgfQsai7TgPYUMG 53rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 o65si2702974oib.211.2020.03.13.07.20.03; Fri, 13 Mar 2020 07:20:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgCMOTr (ORCPT + 99 others); Fri, 13 Mar 2020 10:19:47 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:57018 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726528AbgCMOTq (ORCPT ); Fri, 13 Mar 2020 10:19:46 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 02DEJc1W025673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Mar 2020 10:19:39 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 6AA70420E5E; Fri, 13 Mar 2020 10:19:38 -0400 (EDT) Date: Fri, 13 Mar 2020 10:19:38 -0400 From: "Theodore Y. Ts'o" To: Christoph Hellwig Cc: Jens Axboe , linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ext4@vger.kernel.org, reiserfs-devel@vger.kernel.org Subject: Re: [PATCH 02/21] block: remove __bdevname Message-ID: <20200313141938.GD225435@mit.edu> References: <20200312151939.645254-1-hch@lst.de> <20200312151939.645254-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200312151939.645254-3-hch@lst.de> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Mar 12, 2020 at 04:19:20PM +0100, Christoph Hellwig wrote: > There is no good reason for __bdevname to exist. Just open code > printing the string in the callers. For three of them the format > string can be trivially merged into existing printk statements, > and in init/do_mounts.c we can at least do the scnprintf once at > the start of the function, and unconditional of CONFIG_BLOCK to > make the output for tiny configfs a little more helpful. > > Signed-off-by: Christoph Hellwig Acked-by: Theodore Ts'o # for ext4