From patchwork Wed May 10 15:20:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Monakhov X-Patchwork-Id: 9720039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F00660236 for ; Wed, 10 May 2017 15:21:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2290328609 for ; Wed, 10 May 2017 15:21:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1747828614; Wed, 10 May 2017 15:21:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67B3D28609 for ; Wed, 10 May 2017 15:21:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753540AbdEJPVF (ORCPT ); Wed, 10 May 2017 11:21:05 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35483 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753465AbdEJPVC (ORCPT ); Wed, 10 May 2017 11:21:02 -0400 Received: by mail-wm0-f66.google.com with SMTP id v4so535161wmb.2; Wed, 10 May 2017 08:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=zaFU1vLne9F2iPaITr3m6rDKotzalKCu1YH9hULNpHE=; b=eHleYfloU/wYIBRA8NCt6Yuf07J4IyDji4ijep7P1sOFBiriXkMB6NzofBHW97Hcz7 fdx434uZFTy6jXIcPDQW8EnaSAkcWCU5dPAScrnuj89jT6j5hXyK0Vac0OZjS2hnxJKy dAZtLh2utgKinN6JIWjGAtG/2xIn7Cd0JFoymmgksKNSUAmXTQmo9mo0O0j7PE0CsBCN XAIXRvYQAWfWqdKWkPbI3EWHs5pCs5z53jUWsuY0jzW4JGIY0fMr1Dr2k9ySG1oSzaJ6 TCyRgATLprvB2Zuj5KWXF6an/LQJ480FZgi+leIv0TdbL4d6E5t+N+CXNQqw2gfkY4K/ ld+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=zaFU1vLne9F2iPaITr3m6rDKotzalKCu1YH9hULNpHE=; b=cpaF/I+KXUUn0vZUQrbF9L03y4Jn66IXAdAey1Koka0PJcjviDG0vLyB7dHLwhaXyt 8eUYRBt/kLuD2aIP9qej1eXG40ga15A/+3GHH/NcpWUMkmTti56AHA9EaGB2jDhlUAqJ 30AE7u7i3Telcu4DvfR+zHYg5tt38/qOoJewzzQj9rt3ZJKseQq49UVIwZrkYJFNbMiK kShBg5RXY/Abydq/Dj2QbgYWPsvaFp/hC/x0hc2Ql3zY9qFzdA76uZ+xpfrLrEttVTdW zj+6fkuue9qBmLDqODbEJiHhaaNsPw4Wyo4+nfQmpqip1Y4PZS0pP4PeeIpY+PiZqAQJ Ff/g== X-Gm-Message-State: AODbwcBsk+hZRBpebBEwZ0wupw0RDuUXcpJgga8ttdomr0iBIzE4JzAr e9NBtDGBqFj2fQ== X-Received: by 10.25.227.12 with SMTP id a12mr2992702lfh.180.1494429660551; Wed, 10 May 2017 08:21:00 -0700 (PDT) Received: from smtp.gmail.com (msk-vpn.virtuozzo.com. [195.214.232.6]) by smtp.gmail.com with ESMTPSA id m6sm603519ljb.24.2017.05.10.08.20.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 08:20:59 -0700 (PDT) From: Dmitry Monakhov To: fstests@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, Dmitry Monakhov Subject: [PATCH 3/9] bio-integrity: bio_integrity_advance must update integrity seed Date: Wed, 10 May 2017 19:20:46 +0400 Message-Id: <1494429652-9488-4-git-send-email-dmonakhov@openvz.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1494429652-9488-1-git-send-email-dmonakhov@openvz.org> References: <1494429652-9488-1-git-send-email-dmonakhov@openvz.org> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SCSI drivers do care about bip_seed so we must update it accordingly. Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Signed-off-by: Dmitry Monakhov Reviewed-by: Martin K. Petersen --- block/bio-integrity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/bio-integrity.c b/block/bio-integrity.c index b5009a8..82a6ffb 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -425,6 +425,7 @@ void bio_integrity_advance(struct bio *bio, unsigned int bytes_done) struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev); unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9); + bip->bip_iter.bi_sector += bytes_done >> 9; bvec_iter_advance(bip->bip_vec, &bip->bip_iter, bytes); } EXPORT_SYMBOL(bio_integrity_advance);