From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 003.mia.mailroute.net (003.mia.mailroute.net [199.89.3.6]) (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 1203F302144 for ; Fri, 31 Oct 2025 20:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.3.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761944074; cv=none; b=c8RF7MHozzij4bwAGAKayBMn0CZ/bWuIZxwM4BSkqRZ3SmqfXkYbfKyGN+eAQYe+3rCm/GdkZbDwenijj97QOuIEC7iNA2Jj9kIPOuVP7jhApZcSOSiX28Sd+J92KTzbWeefYHbuMb+KjNDxIGaa14boCxENtI3+Q3N5+wyQ34I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761944074; c=relaxed/simple; bh=XzbD3U2ssINq49YtuphnaJClHSm/ht17xeUcSKx5hP0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=hB2SDIsIizdetQxqeyTV/xFN/OqWyxhb0yEtx6ZOKDpULWaWVgIrI6/lpzA7sAVdQSjgO54Akmxrz9QlJRycgCJjmi/wXR5iVociLR2ZSmBnNRhF1mGkWddSAK4jR8627j5SJgn6RgZiuF7YSxr6C6WxGp++dsl86Zf447oiVis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=3hvDimZ4; arc=none smtp.client-ip=199.89.3.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="3hvDimZ4" Received: from localhost (localhost [127.0.0.1]) by 003.mia.mailroute.net (Postfix) with ESMTP id 4cytWr0jGvzlpkk1; Fri, 31 Oct 2025 20:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1761944069; x=1764536070; bh=tdPb1N/XvciTu3RYqzV2sI8G GuB9BnyZJXd9jeyzPVI=; b=3hvDimZ4pmAE3kPI9/Qi3OGemeLEeui3ruzROjBn E9j0eA8tDDjAZwnY4kN1Q/hbHL+dLF2ZPDd7JH90wIsr8QR5RWjMgFbakqMUQsxL YkqMQFVpaFcwIctAh5cmMhyCXTcFjjx9Pv7OZq8TqTQu0iV1lo+OKZD9UFU9lmD4 CdYhyqYdrHHyVlwsdu+yl48KvBLlv+busO5s2lP3HodQ5Pa/t0FDQEdLK/ngJnf9 vER4MxP74/j0GFH3Ec3OO2uulmXNtCt4++wY0oJ6U9U32k55BP8w04gmOrYs7f4f u7ETNfkeFj1iPjc3ho+MAghTB9qxJVWf0Ir932vxJnEnIw== X-Virus-Scanned: by MailRoute Received: from 003.mia.mailroute.net ([127.0.0.1]) by localhost (003.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id 2Pf8FqZxqiMt; Fri, 31 Oct 2025 20:54:29 +0000 (UTC) Received: from [100.119.48.131] (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 003.mia.mailroute.net (Postfix) with ESMTPSA id 4cytWZ5Cn9zlnfZD; Fri, 31 Oct 2025 20:54:17 +0000 (UTC) Message-ID: Date: Fri, 31 Oct 2025 13:54:16 -0700 Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 04/13] block: introduce disk_report_zone() To: Damien Le Moal , Jens Axboe , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Christoph Hellwig , dm-devel@lists.linux.dev, Mike Snitzer , Mikulas Patocka , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, Carlos Maiolino , linux-btrfs@vger.kernel.org, David Sterba References: <20251031061307.185513-1-dlemoal@kernel.org> <20251031061307.185513-5-dlemoal@kernel.org> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20251031061307.185513-5-dlemoal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/30/25 11:12 PM, Damien Le Moal wrote: > -struct disk_report_zones_cb_args { > - struct gendisk *disk; > - report_zones_cb user_cb; > - void *user_data; > +/* > + * Zone report arguments for block device drivers report_zones operation. > + * @cb: report_zones_cb callback for each reported zone. > + * @data: Private data passed to report_zones_cb. > + */ > +struct blk_report_zones_args { > + report_zones_cb cb; > + void *data; > }; The suffix "_args" seems confusing to me because this data structure includes a callback pointer. Please consider changing "_args" into "_cb" to make it clear that the data structure includes a callback pointer. Another data structure that follows this convention is struct blk_plug_cb: struct blk_plug_cb; typedef void (*blk_plug_cb_fn)(struct blk_plug_cb *, bool); struct blk_plug_cb { struct list_head list; blk_plug_cb_fn callback; void *data; }; Since struct blk_report_zones_args is passed as an argument to disk_report_zone(), how about renaming this data structure into struct disk_report_zone_cb?' Otherwise this patch looks good to me. Thanks, Bart.