From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B4FCC432C0 for ; Tue, 26 Nov 2019 17:50:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4BE2E20835 for ; Tue, 26 Nov 2019 17:50:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=osandov-com.20150623.gappssmtp.com header.i=@osandov-com.20150623.gappssmtp.com header.b="2P86c4cr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbfKZRuV (ORCPT ); Tue, 26 Nov 2019 12:50:21 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:39071 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbfKZRuV (ORCPT ); Tue, 26 Nov 2019 12:50:21 -0500 Received: by mail-pj1-f68.google.com with SMTP id v93so5363589pjb.6 for ; Tue, 26 Nov 2019 09:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=59Vgy8vcI52/DliuLIm2lvu2SIX3lTZeIDQ7bzNt55A=; b=2P86c4crOOWqvpSJVJ2SeRKrNeze8qhqQtkv34djNbIVTGgRMwwI8pLRCecox3XRUv 9xDeyNtqO3Hsi5wL2+5aF5XBWgBlAQdjBsXg3P8cMnDRDRKPWzyOMHlnN8RCb06XOVJX JwwUa+yjSqSxur4anwq+ESdm2aFh/TY2fStmsP17N23n55lgodF7qnYbN2KAtFg79JL7 8n7AG0dK5GuqBwjuYkFSBZnBlaigtqYe1fVgB5b26phYc7hoUGEDoM5h5p5ld03tRjQD VRksa6Fw/DnjFiy88YkxTfaBYc77F+LuZLdjkoD83sRj5w8aWWySrOAzL71YDCW1K26p ddKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=59Vgy8vcI52/DliuLIm2lvu2SIX3lTZeIDQ7bzNt55A=; b=PKbtszFzHGIUtU9EKqFuGUsQrg0+uH+I+duf+aFi5P4uRYLNnWtzt8/HqJeFxnQ1+C PHnprVo1X1uk+B7K7/+tb6sYS7lnFTL9EuJ1v61UKkUfdja+St17gi56NhH7qzwm4HBl yOfxYZc0IdOv66OuXec2e0X+b6TNV1kkjdn5Fl5/Ayd+GqlmkB+BIK0cWpxi7OqO0zWD KS8cq6F+ghRgFHc4TXznPaTIzbhDyRnYolOj9dXQ5eAX9rZ84xISqaPkpIY9NvvjC8go xgaQ+x2HCQPuEzYqds1BQfujIVB2rqC/qK3ztVF9T/4hYHnVrCMwgIFadWsRDwa/Rizg rF4Q== X-Gm-Message-State: APjAAAWjwY8eZistQZ/LLfuv2an85ktdfKIBn+pV1HDO0s7ggX/Pa6H3 Kqogd/L1Nz+OnnrZxOUIZWWTKA== X-Google-Smtp-Source: APXvYqz+pZ81z29BEoNRF6pU6va0mwYVHg7ekqwOjyXpK7uAsydkEqLGGja3NjeTYfxyfO+YmTPbsA== X-Received: by 2002:a17:902:8508:: with SMTP id bj8mr1477005plb.178.1574790620287; Tue, 26 Nov 2019 09:50:20 -0800 (PST) Received: from vader ([2620:10d:c090:180::aa28]) by smtp.gmail.com with ESMTPSA id 67sm3107387pfw.82.2019.11.26.09.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 09:50:19 -0800 (PST) Date: Tue, 26 Nov 2019 09:50:15 -0800 From: Omar Sandoval To: Nikolay Borisov Cc: linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, Dave Chinner , Jann Horn , Amir Goldstein , Aleksa Sarai , linux-api@vger.kernel.org, kernel-team@fb.com Subject: Re: [RFC PATCH v3 05/12] btrfs: don't advance offset for compressed bios in btrfs_csum_one_bio() Message-ID: <20191126175015.GA658856@vader> References: <9669273e-5a73-540f-2091-5ce64e093062@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9669273e-5a73-540f-2091-5ce64e093062@suse.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Nov 26, 2019 at 04:18:45PM +0200, Nikolay Borisov wrote: > > > On 20.11.19 г. 20:24 ч., Omar Sandoval wrote: > > From: Omar Sandoval > > > > btrfs_csum_one_bio() loops over each sector in the bio while keeping a > > 'sector' here is ambiguous it really loops over every fs block (which in > btrfs is also known as sector). SO perhaps change the wording in the > changelog but also in the function instead of nr_sectors perhahps it > could be renamed to blockcount? Fixed, thanks.