Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp408612rdh; Tue, 19 Dec 2023 02:38:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxZ+hNk9uWgVjkWPEi0atSX/LPMbE11AhBhPStjGMDoUDUit2LGhQsjQ17okBO9flNmEfL X-Received: by 2002:a17:906:8e:b0:a23:62e7:d4cf with SMTP id 14-20020a170906008e00b00a2362e7d4cfmr1274813ejc.34.1702982330600; Tue, 19 Dec 2023 02:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702982330; cv=none; d=google.com; s=arc-20160816; b=eP0x5IX1qTSltQaoVpf2lLcRpYIPVHaGNqHRlo1BbhOh9mYqgmedXTskbaEFS6L7KF ag463w5NFcgZecvDvFLh1HKVbYf7lKSeAZwrUbKXRr5XNCyF2rQhWLHkQ9eu0M+DmAC1 lbfduA/wAp1TfhXhEtn5/PgYb+H5EtptfS98tSTbjBknA9lHiT+djbGt+bRhl+dJ18LG +1y0h+nHoAU0ETCe6K8wLlmvGYRIBxGPIRGC4Xgmk01k68ZGAoJBLzZP8nV19VHAgnYX pxO4BJoUArKZv7yPFNK6ricMNaB4xfN+w+j1aAukYad/D7LBA7CCvlEF/Hg3ePtg2b10 FeMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=GuKo81d+ZgXaWDIqIqaFeV+6nzSdLOAzkziHliIAKfg=; fh=IWgkynRfQg+dK01wfSR7+JCdMzP2A+8xz6xSXlWSER4=; b=JKSXqZ9fzRCm3ll0X4cr0vxgHnlofsgHMaa0A/jKA/QfQTtHZ1BxMi698MdVouPYhI N9skKcP7l2YNK0AQqb7E6rpOJlPGVY4GP/oa6BmOMN+44z6nP4ubHo+lFr2njsg8Ysk9 AJrC2aUm0kjQvkzHXHLOuFN4kwEGk9XaAbXz1FW6AFjmmAAHgxXLxD0IVWfksxE+Elo6 nBdG2dom7ASHtytz3UruL4IJ4UeGFzoekCe2IjEvwSY6sUTP5I31CxL4s/zTAh0Sca43 OE5mb0zY0dwo2mbN6247l5KO/II1+cb5Bo3C4GA3xre4NKfl1q7voyEr8s5CxQQc+pMP f+Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5019-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q14-20020a1709060e4e00b00a23321ff54fsi2608718eji.951.2023.12.19.02.38.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 02:38:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5019-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 549DD1F23A62 for ; Tue, 19 Dec 2023 10:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C43D314F77; Tue, 19 Dec 2023 10:38:32 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 221DD14A94; Tue, 19 Dec 2023 10:38:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id A192468BFE; Tue, 19 Dec 2023 11:38:25 +0100 (CET) Date: Tue, 19 Dec 2023 11:38:25 +0100 From: "hch@lst.de" To: Damien Le Moal Cc: Ed Tsai =?utf-8?B?KOiUoeWul+i7kik=?= , "Naohiro.Aota@wdc.com" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux.dev" , "hch@lst.de" , "martin.petersen@oracle.com" , "axboe@kernel.dk" , Chun-Hung Wu =?utf-8?B?KOW3q+mnv+Wujyk=?= , "linux-scsi@vger.kernel.org" , "dm-devel@lists.linux.dev" , "linux-nvme@lists.infradead.org" , "pbonzini@redhat.com" , "linux-btrfs@vger.kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , "stefanha@redhat.com" Subject: Re: [PATCH 3/5] block: remove support for the host aware zone model Message-ID: <20231219103825.GB14379@lst.de> References: <20231217165359.604246-1-hch@lst.de> <20231217165359.604246-4-hch@lst.de> <190f58f7-2ed6-46f8-af59-5e167a0bddeb@kernel.org> <0a329050-0010-47cb-8c7b-a2f0863a21e8@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a329050-0010-47cb-8c7b-a2f0863a21e8@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Dec 19, 2023 at 05:12:41PM +0900, Damien Le Moal wrote: > >> Since we cannot create lambda as in other fancy languages, we need > >> two > >> functions... > > > > Not really, there is a "void *data" can be used. > > > > The device_is_zoned_model() is just the same as the device_not_zoned() > > with (bool *)data = false. > > > > It's very minor, so is okay to ignore my preference. > > Send a patch on top of Christoph's series if you want to clean this up. I'll need to respin anyway, so I'll look into incorporating the suggestion.