Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1303258rwi; Thu, 13 Oct 2022 11:44:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FUFi7LhfS+qYIX+47y3Sxz4PQSaR+ZcC9XD0EI94jfwEsPxllNYnAs8dBiTo3Ll1I4lhX X-Received: by 2002:a63:444f:0:b0:464:3985:3c92 with SMTP id t15-20020a63444f000000b0046439853c92mr1127322pgk.412.1665686668791; Thu, 13 Oct 2022 11:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665686668; cv=none; d=google.com; s=arc-20160816; b=eFxaIln/oj2Q941NGoXyPJuMDd/rhfsSIua5nrfrFStd4CLyiX+20kgrdfeVcvbToI zUT69cWdl0qR6gRQAPerFhewWgeuYwZLbgLQmXuvOY6fw8ASAV2AyUs7Uaoe349RB9Z4 lbixQlld5uaak8sipPFWbtndRC0rkz9WM6M6lA4uTcG2jzezweQ0tKGBcQWp58a/74ti GSPNw72WLrmxw0UQgvAuLOYRsAHoAPaAp2xxZCfsLxLh8lizsNLdUj9PkPDU3lr5za/C kAXd5wDa/l3EHJQCWmZANLsbQhydAAh33S/20jQlpiBEohVxlOzN+WBj903g+2bd6VND 6LTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cbelQPVBaO7/hVjPjbSYCb/QdoXkpGKiEkOAxXunm1s=; b=pbQFg0D6/cwJZoFnVsmUGEvyn6GfroTSN0aLt/O+9vzDR+3qax1MiFusncteIAyJZ0 t3m+QyLUpSH8tZcy271wxUpcx/VXA7z/EuKgzN1j8Y4gQQGK8Aada+3yB0M1UUqr8A60 rvXTckHQPy4E/lgEU0iV2qI1kpM+/XGSZ9OWLRSQO5qpSY3uFmuTnwmRtPyPEe3j620l 1xWag0b3ekjMj8SBTTkdxsfhoyZj6SpBOsR214ICzQahD86UT+de+kAn2La315Pi3N9P /5ETAGZOlZbC0JS5iz/udJuSWvoItq/xUOYItlLtGmYhmUB6e7HbMZDkfphguGdLaW5H Ebzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2zpTStw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a639343000000b00452bab4de6fsi83250pgm.749.2022.10.13.11.44.16; Thu, 13 Oct 2022 11:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2zpTStw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232039AbiJMSOB (ORCPT + 99 others); Thu, 13 Oct 2022 14:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231653AbiJMSMn (ORCPT ); Thu, 13 Oct 2022 14:12:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4672170DDB; Thu, 13 Oct 2022 11:09:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 84550B82036; Thu, 13 Oct 2022 17:55:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12C5FC433C1; Thu, 13 Oct 2022 17:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665683749; bh=3FTYuGT7nw9NB56TvQ4if0y5cqaa0gEFg/Ln0VSlmD4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F2zpTStwDhSQFnCPBMdL5w6vdNT5dL/nZAsg5+Djyl6xtjOS/4v0f4zoMfL9cNoAV HuPp7hB0fTCB7m0j25kwF3N0oUyQaqRNVv/P+eJmA/sZ73fYFIz8N+T1dm1fW5nCzS LMa6Jo5PEAbRumCHCuDVdO0DdzZT64DVg2WPff5jrQrteY5kqX5a/Oc5+97i27m9Jq kZ6NQbkq7l2bkGfu7D+TntU9tLb088wMsUw0RGyIBtdaQHUDUF/5kVwrk+ePpBpJkX fFMZX94ubP4ocpDrXfwM06xaZYQvnrvHX5jmetT4Zr5rK2CxIQ5yHIcd5EC5mKjnu6 e8kHTlX91AQzw== Date: Thu, 13 Oct 2022 13:55:48 -0400 From: Sasha Levin To: Omar Sandoval Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Omar Sandoval , Filipe Manana , David Sterba , clm@fb.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.0 33/46] btrfs: get rid of block group caching progress logic Message-ID: References: <20221011145015.1622882-1-sashal@kernel.org> <20221011145015.1622882-33-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 11, 2022 at 04:46:49PM -0700, Omar Sandoval wrote: >On Tue, Oct 11, 2022 at 10:50:01AM -0400, Sasha Levin wrote: >> From: Omar Sandoval >> >> [ Upstream commit 48ff70830bec1ccc714f4e31059df737f17ec909 ] >> >> struct btrfs_caching_ctl::progress and struct >> btrfs_block_group::last_byte_to_unpin were previously needed to ensure >> that unpin_extent_range() didn't return a range to the free space cache >> before the caching thread had a chance to cache that range. However, the >> commit "btrfs: fix space cache corruption and potential double >> allocations" made it so that we always synchronously cache the block >> group at the time that we pin the extent, so this machinery is no longer >> necessary. >> >> Reviewed-by: Filipe Manana >> Signed-off-by: Omar Sandoval >> Signed-off-by: David Sterba >> Signed-off-by: Sasha Levin >> --- >> fs/btrfs/block-group.c | 13 ------------ >> fs/btrfs/block-group.h | 2 -- >> fs/btrfs/extent-tree.c | 9 ++------- >> fs/btrfs/free-space-tree.c | 8 -------- >> fs/btrfs/transaction.c | 41 -------------------------------------- >> fs/btrfs/zoned.c | 1 - >> 6 files changed, 2 insertions(+), 72 deletions(-) > >Hi, Sasha, > >This commit is a cleanup. Please drop it from 6.0 and 5.19. Ack, thanks! -- Thanks, Sasha