From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f227.google.com (mail-qk1-f227.google.com [209.85.222.227]) (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 3337A2D7DC8 for ; Fri, 17 Apr 2026 01:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.227 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776391070; cv=none; b=VVnu+LDV5c2/npCNn9Dm17vAzfYGyu9YoIk+XP1S15Gl0dghLMWMBDFpNmhu2xM7AkEa4gGPSJ+mTcLV6rTpnsyBhN5b8gHaeT2BC0ZsX8xxXd3KXIG3xvJEo2tI2Xsa31v9AWgoApiAZt4xrUVjDUDUTBQZcTdL/sLZMAi79+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776391070; c=relaxed/simple; bh=fhgMAHy09LsI1L6bahd3pmbOSSyNApfMWjie8uHGN74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V7D0L8LQPZRgqGCFwsEcsJz00wqaRH4MK8bDGWFnmZ9wRJBe4lGJ2xBS40phbuNO9Qfj9xpgtgm5G7DHbU6TmEoo6h8Vz9y+oUpnUYup1ZgQ3bQqIqzISK2LCxidJnY59PPQ1YrKe3iLGE3lFHSW7aC2ng8+g/oQLR7B+h53ejo= 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=WcXV0ODh; arc=none smtp.client-ip=209.85.222.227 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="WcXV0ODh" Received: by mail-qk1-f227.google.com with SMTP id af79cd13be357-8dd7a652f80so3453685a.1 for ; Thu, 16 Apr 2026 18:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1776391061; x=1776995861; 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=MNTSjciFlX9Rr/279QUaN+sXA97OE3S8NKaAWj6D0d0=; b=WcXV0ODhPgZRhhFcuKI/SlGxMpU9IB9Qat1jFXkv3DIO4HdS/16t6whB1jhXzXQdJ4 gP8Bn2lZqv7KO0XYceQPW+TRMlVLKjV7yPj/oi3npgktWRjn8Ore6pxWltWu+eQVwbgK 6rpFIf7/a7/C+F+Thaguc9F1Jbp/MgwNbtkyGZyZ1fy8ttgzwvUOy0D6BPOR+0uowNUp /kA3AGSZFtX51JQir926dqj4X3O+Cb4x+W8NiU/lfYe9XIu8Uax52ye4Lo8NNLVj8kt5 SRt+dcmT0lB0HrLYSWHHTUSdHkcp39LRKPT01jtYQ8R+reI3jp51/djtc2UEbRwTgx7u UqZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776391061; x=1776995861; 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=MNTSjciFlX9Rr/279QUaN+sXA97OE3S8NKaAWj6D0d0=; b=s5osTOsIxlORhyLZ1pct8Rfp2Kgqpxcd37Wji616S1vd1GVvwPgGGlKzDt8SgjHuEN OdGi0lGryyVJWo/d7gp73ecQpatoNgBKHdz7+pErCZAIgFfM65GUleatcirtQJd7C0iy +VxfL6XcfLd2iMfvpC5tqkdD/oKfjCpgTABB9jtxWMZMUW44a/ur7DptNvTrfunqBhTJ C8+UDCW92fO0sIGaKNzhbQiwxQfD8lnJ9KkCIGwPc7sjJiaGSKuHpqTKsktOSAJOisGn Jf2ZKxGrz6I0reKrsyw9GIcEXVQpRKQHOX242iICEtu6ttc/xn4a1neNkCvJDnBd0Vgo N8XQ== X-Forwarded-Encrypted: i=1; AFNElJ/iqTiOaVbBMxYnSc8ooo3CAY7HDQ7nuBWKADwJBSqbHs6oiMFhQ4HKuPnyWD/cSerhJAgwiWFrSabeSRI=@vger.kernel.org X-Gm-Message-State: AOJu0YyFB95msDtLoKZMvX6xCNbMA/L2TAW/UrkMDWouoGqrSFWDABPv QLjSk4MihXh3l9rPVYGAcg49+nwb+PYXUJF4LCT9GRd5vvQEiCfU9AopDwzxVaynnFiMhP18c3z oLDYYpChSRQdX/xyBYPEGvL9xkhjtAJYHukispWK3BjsKSUyH2LrG X-Gm-Gg: AeBDieskuSEy6z9qafOWsdtVVIJ445+rHzdbpNLtpG2Ab8amfX1kWDeee5BnuGHE+n5 3ri7yEFa6OEntFwOEdbXMxR521in+XUpiWiVDhEVsTV91ICyjrSVFXirg//qvd4q+YVmZq7rqPR ZgkgA845fEG/S9hJLXfmeq3/Nd/w09OLBj3jOtX5bHD1xP1hmLOuVw3vzsJaZqsdcvklwSXck0d +Hms1UuJzuqwJD2E7Xr0PNIW+yfi+VAwkAKbN6jt10MFyHdhYfWzRcPscs18tZzZhKFHJ+YCpQu Co0QAK9AJJM/PXuxVir7fkR//HxQuRo238E/7o1EM1IICXyil91Ygzl5hiPIqTYkNld6StheiuM /uzNFdIyjOInVO2xw+L8V8ABKmzxfuz5PjYd23HGK5rZcmPAavw== X-Received: by 2002:a05:622a:44a:b0:509:15aa:cf03 with SMTP id d75a77b69052e-50e36c0afcdmr8556161cf.4.1776391060999; Thu, 16 Apr 2026 18:57:40 -0700 (PDT) Received: from c7-smtp-2023.dev.purestorage.com ([2620:125:9017:12:36:3:5:0]) by smtp-relay.gmail.com with ESMTPS id d75a77b69052e-50e394581ccsm55631cf.26.2026.04.16.18.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 18:57:40 -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 446ED340C58; Thu, 16 Apr 2026 19:57:40 -0600 (MDT) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 3FEBEE406BE; Thu, 16 Apr 2026 19:57:40 -0600 (MDT) From: Caleb Sander Mateos To: Jens Axboe , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , "Martin K. Petersen" Cc: Anuj Gupta , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Caleb Sander Mateos Subject: [PATCH v3 4/6] bio-integrity-fs: use integrity interval instead of sector as seed Date: Thu, 16 Apr 2026 19:57:30 -0600 Message-ID: <20260417015732.2692434-5-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260417015732.2692434-1-csander@purestorage.com> References: <20260417015732.2692434-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 Reviewed-by: Anuj Gupta Reviewed-by: Christoph Hellwig --- 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 0daa42d9ead7..0ad1c5ab64e9 100644 --- a/block/bio-integrity-fs.c +++ b/block/bio-integrity-fs.c @@ -65,11 +65,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