Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2454133pxb; Mon, 23 Aug 2021 22:44:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU9PVV3BdnEJXqa1/TvOJnw+vNas1aRvA2ddGOAn2+6UWZ8STf2mrxI7xUxDEhh1HFqhzY X-Received: by 2002:a17:907:92c:: with SMTP id au12mr4134874ejc.523.1629783879412; Mon, 23 Aug 2021 22:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629783879; cv=none; d=google.com; s=arc-20160816; b=yovxxQUaOG0LZUeIkN2rdkygyI6gGueyi5nVHqfJcKN3wY76Seh3jn5du3waK+jbpG kh/ZKqtlSudJxVT1drUFVri7wZXD09NxUC+LzteNUMw4BIRuOaQzsFUpPSLjB2HWq++J L3KAwEyJCguMOqtypxA0YgznDXZAjt9vmQni60zDeO08YEGsdlf/gA6BTNCEMvVB7C3F 1XnT2RMp2bkBAqJ1czkLrIIx3hekb2kQeOT2hWK8lPU2rFx8Iyt6e35sWajdO45tFtAB O8wXDZQGYHbLSfB0ohCNz1hw9SHuFr0IZfJ9mjJ3aruFRlz2MC1B65TZcCBXh+YbUQm8 /HPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=K6JIunJGnW0VWn4aMkdysZKTdwxzVZXU8JjpRF1JuRU=; b=V+NUuL2y9ULRwXQXkWetlENcoWRsrq+/SDO/8ODD+SK3i01EilJdouVvfzqD9PpKUX gRC44hSNg6gpSFYAtB2wfiCMcECEuYh3EzNCfymKDBtHuOQAcyyBG5kzIdiUX4dicM/T vzWp/9BbJAWRY0otwQJGaSIPJ8lZkzNSSmbv3U0AGE2B2pv5Wn9bN/aSPw/5Xn3jNftf zrNUroJ2H0Fb4yQTqdv6XUz8+z5Pnr759My/tkSmEQGPN4JrwINvCehEDvoce39qDKHe wQnb6EjhEk4fJX0a8OhvLwXmY3WO5/7cs7cYHMOzzn+of0fiqxK8snuE7oJjy91lnruQ +zbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si11415016eds.318.2021.08.23.22.44.08; Mon, 23 Aug 2021 22:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbhHXFou (ORCPT + 99 others); Tue, 24 Aug 2021 01:44:50 -0400 Received: from verein.lst.de ([213.95.11.211]:50191 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhHXFou (ORCPT ); Tue, 24 Aug 2021 01:44:50 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7FCB867357; Tue, 24 Aug 2021 07:44:03 +0200 (CEST) Date: Tue, 24 Aug 2021 07:44:03 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , Vishal Verma , Dave Jiang , Mike Snitzer , Matthew Wilcox , linux-xfs , Linux NVDIMM , linux-fsdevel , linux-ext4 Subject: Re: [PATCH 7/9] dax: stub out dax_supported for !CONFIG_FS_DAX Message-ID: <20210824054403.GA23025@lst.de> References: <20210823123516.969486-1-hch@lst.de> <20210823123516.969486-8-hch@lst.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 23, 2021 at 02:15:47PM -0700, Dan Williams wrote: > > +static inline bool dax_supported(struct dax_device *dax_dev, > > + struct block_device *bdev, int blocksize, sector_t start, > > + sector_t len) > > +{ > > + return false; > > +} > > I've started clang-formatting new dax and nvdimm code: > > static inline bool dax_supported(struct dax_device *dax_dev, > struct block_device *bdev, int blocksize, > sector_t start, sector_t len) > { > return false; > } > > ...but I also don't mind staying consistent with the surrounding code for now. While Linux has historically used both styles, I find this second one pretty horrible. It is hard to read due to the huge amounts of wasted space, and needs constant realignment when the return type or symbol name changes.