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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3108C38145 for ; Wed, 7 Sep 2022 21:07:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiIGVHg (ORCPT ); Wed, 7 Sep 2022 17:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbiIGVH1 (ORCPT ); Wed, 7 Sep 2022 17:07:27 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1416BC2F9D for ; Wed, 7 Sep 2022 14:07:18 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id q21so1985381qtp.7 for ; Wed, 07 Sep 2022 14:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=5XFSbTu8JLiaqbe/aaB5H3G6q2+uAR8AZMv3BlQCVkw=; b=hAaWh9Hp75G7fMyvoVm+2YeyAMoo/jh/Sj00Sg9ngiZrFj/iyVFFOZZRq3Dl8JCJBg gVjEtOwcXK5pgpv8GgXyUKSq87CXj6tAif+k1fYyZSbX/uZYoYjlsbEbf87UId2CmIRa ArT7QIeeYfRNxvsHxteZ0nNX7sqmM7wwcc0b5grb4+jZ0eRAy3asuPle285XnAEUHyGo fS3aGASz1Pkj0Su5/Yq7FWoLCFLpkaAa2rrLckTpKYzO/lpYX3r5kQJ9Epj5VUgpN6M9 pwLjgg3OPF3IYA2LsqWwLIm5frSEa68tgiHu2tYeXmZC4qAsdjgCHxmjgOdvBe8/Ql4n fPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=5XFSbTu8JLiaqbe/aaB5H3G6q2+uAR8AZMv3BlQCVkw=; b=186cbvE7u9r8w0LuQVaOUOvcFPA3Q/xC7L0HAIttjdX26kUXIPTd8OwoKzEudnZyJT 3ljq2RuA7l5ibWZuWFLxxZ5qVYfVu7p6EG7QjYicCvqO6PBlxlxEeEwPT1rlPIIFq4kD z3zC6yLWGuIZ6G2R+ThdBVMuoyIqslLCdgyfp6B/u+13ri8nOWVc0a7nMqiSJsi3eqav YAl1DFg4N6iem5xiKS0/ga55sk/MI8YtcL7lCkRS6jbYwcYhzTl5skEt7ShjToo/KtrH AYAUhjb4FNegp5eL6ssLb4+oWG5c51FLNW3I9pqM2sCcVB0feyYnJCETE6Y2nNAbxpFd 1s5Q== X-Gm-Message-State: ACgBeo1G5UbbSQCgqrKF1pOpA4gCQ6JO4tFqx+PCyp7SVj/XZsyvaGdV zcqqaA8W8eqPa3PYcoeipcfUJw== X-Google-Smtp-Source: AA6agR5Y+ctVk6tTsu8FtmceqQEVqGmzGqiBK6IB5xxE15uCaH8k9MNkzjPeibjNcwOrOLSiOfXN1A== X-Received: by 2002:a05:622a:1b9e:b0:344:5627:7afe with SMTP id bp30-20020a05622a1b9e00b0034456277afemr5219357qtb.329.1662584837422; Wed, 07 Sep 2022 14:07:17 -0700 (PDT) Received: from localhost (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id u4-20020a05620a0c4400b006bc1512986esm16634752qki.97.2022.09.07.14.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 14:07:16 -0700 (PDT) Date: Wed, 7 Sep 2022 17:07:15 -0400 From: Josef Bacik To: Christoph Hellwig Cc: Chris Mason , David Sterba , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , Qu Wenruo , Jens Axboe , "Darrick J. Wong" , linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 10/17] btrfs: remove stripe boundary calculation for compressed I/O Message-ID: References: <20220901074216.1849941-1-hch@lst.de> <20220901074216.1849941-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901074216.1849941-11-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Sep 01, 2022 at 10:42:09AM +0300, Christoph Hellwig wrote: > From: Qu Wenruo > > Stop looking at the stripe boundary in alloc_compressed_bio() now that > that btrfs_submit_bio can split bios, open code the now trivial code > from alloc_compressed_bio() in btrfs_submit_compressed_read and stop > maintaining the pending_ios count for reads as there is always just > a single bio now. > > Signed-off-by: Qu Wenruo > [hch: remove more cruft in btrfs_submit_compressed_read] > Signed-off-by: Christoph Hellwig Reviewed-by: Josef Bacik Thanks, Josef