Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp862645ybl; Wed, 8 Jan 2020 07:08:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwxgJUqeo6PKe3kkcuxOJh6CwRQxORQ1fm9ze2KrwbcW+9V3pojiOUO0A3lu8GtzfuxNJQy X-Received: by 2002:aca:110a:: with SMTP id 10mr3408471oir.130.1578496099861; Wed, 08 Jan 2020 07:08:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578496099; cv=none; d=google.com; s=arc-20160816; b=eul14tC0nJ7nVuT9OIR2BE0RSqGp/+jJZFernu6PTwzKl5C8OOw3c+2tvzulj+evBE x2PX6rNDW6lfraCCf3JrJQE4MfSwcVqCKDeR/+n9QyuM/mwMf76OWAiVoYNcoZA/bgP+ j0HGDaUpbteXg99XHkMagT59y50sRVoyMaAizz6i8Uxo1PX7vIkZe42VCYctUTbviXuy jwcMoMvplJ5TQc9LnmQv0IPOkOGuoylJ6+ptT/Kvs5BuSDXdG4NxS2lPgUl7pqElQdUQ pjr73AqkgWavX0hJWs3nqeenJM/3BVrRhT9Sa3WvSuzlj3iElnDwvFuek5sV+6IIBBN5 A/tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GJOpssLe/1wR2UmCwHq+AxAoGPRWQh3TTu2RMaeEsEk=; b=FfHrXmejDMYCjrwBpO20H76gRLpRb+t11W9veL624sJF3yh2uQqL9OoLdURK3/MAEn 9ZYAAD3srnvmlTLHwex9ZWVkUetEhWsPKkS2b/w+zLUOqgsCpTd0pmdTjq1I/OSIVunk s0FxwC+58VNgK+9FsKg6gC1Lm6AEZ5SfkRgM86sA3sQyNQhBiij70/qKIo0ErTZBTXOf gxIBuXSFPsKhShuTVzEl5WC+3pnMtdCn5Q4Ei9DUXK6TH99QMwP8NVQ297bPgxxHqLUT np+5bxBU7hV/qLr4A4qud3qBTCUl7nLMxGqJTt5+164u/+CVKxZGqME+waNqUIdMQ1N7 Nr4Q== 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 v3si1736572oif.122.2020.01.08.07.08.04; Wed, 08 Jan 2020 07:08:19 -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 S1728383AbgAHPCs (ORCPT + 99 others); Wed, 8 Jan 2020 10:02:48 -0500 Received: from verein.lst.de ([213.95.11.211]:49671 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgAHPCs (ORCPT ); Wed, 8 Jan 2020 10:02:48 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 5230B68BFE; Wed, 8 Jan 2020 16:02:45 +0100 (CET) Date: Wed, 8 Jan 2020 16:02:45 +0100 From: "hch@lst.de" To: Chaitanya Kulkarni Cc: Balbir Singh , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "axboe@kernel.dk" , "ssomesh@amazon.com" , "jejb@linux.ibm.com" , "hch@lst.de" , "mst@redhat.com" Subject: Re: [resend v1 1/5] block/genhd: Notify udev about capacity change Message-ID: <20200108150245.GA10975@lst.de> References: <20200102075315.22652-1-sblbir@amazon.com> <20200102075315.22652-2-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 03, 2020 at 06:16:39AM +0000, Chaitanya Kulkarni wrote: > Since disk_set_capacity(() is on the same line as set_capacity() > we should follow the same convention, which is :- > > 1. Avoid exporting symbol. > 2. Mark new function in-line. > > Unless there is a very specific reason for breaking the pattern. Why would we mark it as inline? It isn't by any means in the fast path, and there are no easy opportunities for constant propagation, so the only thing that would do is increase the code size.