From mboxrd@z Thu Jan 1 00:00:00 1970 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 2F78B182C5; Wed, 3 Jan 2024 07:57:34 +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 E3A7D68B05; Wed, 3 Jan 2024 08:57:29 +0100 (CET) Date: Wed, 3 Jan 2024 08:57:29 +0100 From: Christoph Hellwig To: John Pittman Cc: Christoph Hellwig , Jens Axboe , Richard Weinberger , Anton Ivanov , Josef Bacik , Minchan Kim , Sergey Senozhatsky , Coly Li , Miquel Raynal , Vignesh Raghavendra , linux-um@lists.infradead.org, linux-block@vger.kernel.org, nbd@other.debian.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 3/9] block: default the discard granularity to sector size Message-ID: <20240103075729.GA485@lst.de> References: <20231228075545.362768-1-hch@lst.de> <20231228075545.362768-4-hch@lst.de> Precedence: bulk X-Mailing-List: linux-bcache@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Jan 02, 2024 at 05:11:19PM -0500, John Pittman wrote: > Hi Christoph, is there a reason you used 512 instead of SECTOR_SIZE > from include/linux/blk_types.h? Thanks! To match the logical_block_size/physical_block_size/io_min assignments just below.