From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f100.google.com (mail-oa1-f100.google.com [209.85.160.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF34F3D6477 for ; Fri, 3 Apr 2026 19:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775245285; cv=none; b=NRL7tfJMasr+GCq1RXCA4XuBkmIceTJ+vgN4lahsmr96H3Y5t86TY+1+glt2HnzFzEcijUeM2Nj9xbhPQ2KB8yD1Z6HSGZ6/a+rnUFvUm7ahgU2xCUTV05PPoOHle6Bj34NYRV+QD6CXI3W57WKHZHcqK987FOrSIUYdlD8xyx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775245285; c=relaxed/simple; bh=YYGrwQRz4CUpiS0HafIif2tS+tWh36dIqKCheejEgg4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TIRXbkF20GuyplWuRqs1+aB7hU97YWTyT382jLWwrLcBOVtwl2W2jiA2pvpj9S8uTlInBBvYeRIcb9JquQ0hMwh9rXOmXudylnmiWQ7wlvNwjwLuWAb/9GX3np02weApLmG4RWKKlLA0gFSeQhIL54QpswawjnEUzcf5QAajq/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=edYt1hND; arc=none smtp.client-ip=209.85.160.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="edYt1hND" Received: by mail-oa1-f100.google.com with SMTP id 586e51a60fabf-41c63f371bfso176316fac.0 for ; Fri, 03 Apr 2026 12:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1775245282; x=1775850082; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=otX1Hqc0T9DvgqLYhcqiRNaRpAdPxblh5+E7UixGoPQ=; b=edYt1hNDxW0OYL+t0VGIvgcz9lgtpWhSdGkrNqD6MAGIbJlLEV2Zkj96at8Pq8uzJS OGWTPrIO+MmuobdFI++4h7RrDnFKtAW20d++l1nyyGwywqipRDIkeektWcyC4PA+X69L TUHYXuqomlQWPDRYYgZ3XoOYG/cHQLxZ1WcLgTpMglKqI2raIdmHSMVptMWq8dH7WBoC ZrI+G/isek5bv0yB1pbwzgMMbNx2qdteumh9lnEYBouU/V5WdhH75JXJ06XHAeZD8GiL 5xeJwt/x0CbzM6xV60SrbfuhammflPrR2wU/TQDon4Dy1g5Ws9pBTSDZyTxtGTr7wRuK 8f/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775245282; x=1775850082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=otX1Hqc0T9DvgqLYhcqiRNaRpAdPxblh5+E7UixGoPQ=; b=nH886OThlPbFh+gRWxDMUjti2qtd5RmhqkENonXCTc2hzNpD2RXm9/jbS7zLK3RUNU a+UEIHJrJhLrCkxUA0Yy5L+hCJW/XU7vy1rffIuV0XeH7rHJPYd6SQty/cI0MmslG3Yp T8Uc/u5Z6oOOzbc3dkJshJkNeU94Eb1hs0ZYkR5zpohOQt/mRZARSvR129iwgOts9RlN LK91lBv9XEZVbTbd0Xc8FLjF9ssvWOpITUee/xeA2taq+j1TffgpXrxcL4qdCzG/J9xJ MmtQXlDY4lCtVF7v/KucivArjP3Ee0oagRh8LUkvzGIKegnvH/RzqdAcD4zbGOtMFAqG iFhw== X-Forwarded-Encrypted: i=1; AJvYcCUZ3HbGitky2yC9IKEsqZiIOf5NAjq2lcuw191YZ1yJVu6WlAghruBxIssTYei4GCC9wyTnc9KUb0cYAyA=@vger.kernel.org X-Gm-Message-State: AOJu0YyJwCgYf28S6G54d6GYPru2dkVuCoqGlDxKmJVV1S7SOPprHCbt rQy46tZLvGT0RHeEPKkeU/Ut+CkOSWSqmBxcku4CbdHufHGSXuhlaZ6THbTX2zoizBkCi7sR2+r FzkBl9Oyd/WyX41Xyq8+OwSnmQ5oN6VfqHwcJ X-Gm-Gg: ATEYQzzqs3/0xzhKnz2NIF9LsKLG7q25iBGISuGUrPTKgl+7z/VBYZsQsdnUzOsohiV UBvRIJUlBeGJGuyKvH5VLaVe6xWYZDiL4XvLEbu65DpCO6RfIPHt4I2wUcx8AM1AZ8xkByUT72q TbR4BGcdyP6BwUUjuXB9NDf6CkFUmB/90b7SFUUIYa6RdZGVtZ9k2Ha18JZGx+LGyv6SDugvnfy Ut2CqT+sMi7q1WwxrqA37UoUHB38I77ShdpPf4xoMrMCV4QUr5J0PRrHn8i1EFHev3YWbL3kERm T9VRJSbliQ0phFuRUu8TuM2h2nDJbLdglrVkuJcGqfpKvmvrC6T5JbMuh7xXG2v8A2N/VkJ4U4o oqQVYj9rU436TNQfXGuFX/U/Lf2nOTUdMo9x1gPnYlA4VkKwIlyZWVQ== X-Received: by 2002:a05:6830:25cc:b0:7d7:ce56:b93 with SMTP id 46e09a7af769-7dbb72f247cmr1794595a34.1.1775245281603; Fri, 03 Apr 2026 12:41:21 -0700 (PDT) Received: from c7-smtp-2023.dev.purestorage.com ([208.88.159.129]) by smtp-relay.gmail.com with ESMTPS id 46e09a7af769-7dba72d7182sm505129a34.7.2026.04.03.12.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 12:41:21 -0700 (PDT) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.112.29.101]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 31F7C3422E1; Fri, 3 Apr 2026 13:41:21 -0600 (MDT) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 27E8FE41AC2; Fri, 3 Apr 2026 13:41:21 -0600 (MDT) From: Caleb Sander Mateos To: Jens Axboe , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , "Martin K. Petersen" Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, Caleb Sander Mateos Subject: [PATCH 4/6] bio-integrity-fs: use integrity interval instead of sector as seed Date: Fri, 3 Apr 2026 13:41:07 -0600 Message-ID: <20260403194109.2255933-5-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260403194109.2255933-1-csander@purestorage.com> References: <20260403194109.2255933-1-csander@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit bip_iter.bi_sector is meant to be in units of integrity intervals rather than 512-byte sectors. bio_integrity_verify() doesn't actually use it currently (it uses the passed in struct bvec_iter's bi_sector instead). But let's set it to the expected value for consistency. Signed-off-by: Caleb Sander Mateos --- block/bio-integrity-fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bio-integrity-fs.c b/block/bio-integrity-fs.c index 389372803b38..5d1b0e33fc5f 100644 --- a/block/bio-integrity-fs.c +++ b/block/bio-integrity-fs.c @@ -62,11 +62,11 @@ int fs_bio_integrity_verify(struct bio *bio, sector_t sector, unsigned int size) * * This is for use in the submitter after the driver is done with the * bio. Requires the submitter to remember the sector and the size. */ memset(&bip->bip_iter, 0, sizeof(bip->bip_iter)); - bip->bip_iter.bi_sector = sector; + bip->bip_iter.bi_sector = bio_integrity_intervals(bi, sector); bip->bip_iter.bi_size = bio_integrity_bytes(bi, size >> SECTOR_SHIFT); return blk_status_to_errno(bio_integrity_verify(bio, &data_iter)); } static int __init fs_bio_integrity_init(void) -- 2.45.2