From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 004.mia.mailroute.net (004.mia.mailroute.net [199.89.3.7]) (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 295411D5ABA for ; Fri, 31 Oct 2025 17:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.3.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761933370; cv=none; b=TpfX9ArGHRDS7TqNeI9Ap2TlazojwLpfvlpGJjtjguchKuZfLziKBtEZ9xbK/LnWL7pmmL3WRsuAiTMTTRn972/+Xt2yOdoKwH93xSZ1yk3AmCUmrbIAKB8pyS6HtZWpPxOe/emx3bhQDvbYJ1vjYtMRZsPayeY9wkL7YlzqcHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761933370; c=relaxed/simple; bh=H2gJ+R3dxcg9oaIm0n3G+xeqBE2dv2VwFRsTo9tGfA0=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=O9PpDDq+j0Px+octmFtF3JKVAvHZzcot5uxIzfM2mm6LpPZo3lEYnLWBbNd2Xvv1PXdj5pPgxPZx12xKRxiWx9GyZPb3hvMKvbx9rdvgSdT5d64/eO/TR+FjgOSFpIf8AZ38e4bWSDMSvh9xWzJyAGtZb7mjimL96hh2auOoxss= 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=rT28JTWZ; arc=none smtp.client-ip=199.89.3.7 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="rT28JTWZ" Received: from localhost (localhost [127.0.0.1]) by 004.mia.mailroute.net (Postfix) with ESMTP id 4cypYz73RCzm0pK5; Fri, 31 Oct 2025 17:56:07 +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=1761933365; x=1764525366; bh=H2gJ+R3dxcg9oaIm0n3G+xeq BE2dv2VwFRsTo9tGfA0=; b=rT28JTWZ99TOZeuVLHnbuiww9kMqasyX8PYMeefR E7vPo6R6ZeeCK8Hh09MEp3ihMVqImaZndPHWHNjBXjNngQGj9NtRCNCqsnkpFMV1 44b/RaTaB+4ASNlTp4uk3aMu2Bg+1DaAtkJ0aRIircAlyJg3JN/+AY0x2Fe9k05w PFTir7Cf5L0v2ZMEtVG951wdbJAtWuxhxVSiGYNROtEnb8pkNpjs2xTYi8gaT0ed HCvdoynO8W0ZnaacVvmv1FRJTH/Pqdr2j1QdPvwDP7DalxFIabiX0ZAaUaqlxNxs Tndh5RtstAX7aOxdVPNIZXmE8ZSXCQcwGWic2k/4IU11Gg== X-Virus-Scanned: by MailRoute Received: from 004.mia.mailroute.net ([127.0.0.1]) by localhost (004.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id PfNpY8yMIsmy; Fri, 31 Oct 2025 17:56:05 +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 004.mia.mailroute.net (Postfix) with ESMTPSA id 4cypYj0bQZzm0ytR; Fri, 31 Oct 2025 17:55:51 +0000 (UTC) Message-ID: Date: Fri, 31 Oct 2025 10:55:50 -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 02/13] block: cleanup blkdev_report_zones() 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-3-dlemoal@kernel.org> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20251031061307.185513-3-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: > The variable capacity is used only in one place and so can be removed > and get_capacity(disk) used directly instead. Reviewed-by: Bart Van Assche