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 1650016D4CA; Sat, 8 Jun 2024 05:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717823324; cv=none; b=gtkdFACv590MeMa3eVYFWr32V8FT1G0v38km7XuOD59msI1HyFjg8tvqtW7pfqL5ruRWOIw8VRDElfIzCE6hCh96W2V0xqK2FoWkDXaK218zhkb3JDdOxL32FCWqSE/YknOkyffsO9j2nkhO5KDBp3r6iiUHYZuGOMO7MNjW6TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717823324; c=relaxed/simple; bh=EoIlWBjsYw8WZFhnH6+JX8WF6nZVCYR/44OHPzQhs+Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ggy6/542QmLS6wvb9ymsYKyA5hZjCHMn6iYIKlndhfYTyNjo9UWF/MIB74cXbB9uzmxrbFyNQ2QCX0cOwjBdJVs8Rm3+QJEw2pdIcJ2u0ElYRTNhtKmZbhS8++Hb58i+mlgCOaIsMu6/zWy6igIvDwCx7lCVg6S5oxorpOrd2bA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 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 72C1F68AFE; Sat, 8 Jun 2024 07:08:36 +0200 (CEST) Date: Sat, 8 Jun 2024 07:08:36 +0200 From: Christoph Hellwig To: Kanchan Joshi Cc: Christoph Hellwig , Jens Axboe , "Martin K. Petersen" , Mike Snitzer , Mikulas Patocka , Song Liu , Yu Kuai , Keith Busch , Sagi Grimberg , Chaitanya Kulkarni , linux-block@vger.kernel.org, dm-devel@lists.linux.dev, linux-raid@vger.kernel.org, nvdimm@lists.linux.dev, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH 04/11] block: remove the blk_integrity_profile structure Message-ID: <20240608050836.GA23942@lst.de> References: <20240607055912.3586772-1-hch@lst.de> <20240607055912.3586772-5-hch@lst.de> <8d26d133-6fac-531c-d300-5b99678f1cbd@samsung.com> Precedence: bulk X-Mailing-List: linux-block@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: <8d26d133-6fac-531c-d300-5b99678f1cbd@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Sat, Jun 08, 2024 at 12:01:43AM +0530, Kanchan Joshi wrote: > > + if (!bi || bi->csum_type != BLK_INTEGRITY_CSUM_NONE) { > > ti->error = "Integrity profile not supported."; > > return -EINVAL; > > I'd rename BLK_INTEGRITY_CSUM_NONE to BLK_INTEGRITY_CSUM_NOP. Overall. Well, we don't do any checksumming here, and not a no-op checksum. So in terms of the checksum field I think the name is correct. But it is indeed confusing vs the format string, but that is an ABI we can't change..