Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3006981rwi; Tue, 11 Oct 2022 17:06:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NLcYl+1ZvS3hQ4ZD3CgLA3n2qBXTajjI6k7H5Cs5rZ1rN1c23LFIwxI5Zv+5lE4a/F9xe X-Received: by 2002:a65:604d:0:b0:43c:9d8c:813a with SMTP id a13-20020a65604d000000b0043c9d8c813amr23820172pgp.572.1665533186640; Tue, 11 Oct 2022 17:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665533186; cv=none; d=google.com; s=arc-20160816; b=F3oG71KHKV+uNtkOtJSob09lvTQmXucM4FoSqo3sQLCHRcVReCzLMTrQEaATfFP7gP W/Ro6h7yDk0WWutBSqQR108uomXq0iS+auSd3sZNvyIG6t1dyp8VKwISd9ysmj5WMPxu TOnZ+DclsUdIHCM6pPGOOAKwsDpW7rn9oWUeRN0+O8aDYy5qw924d9QEty7h8pSOtdnN iqiSQg0X06XDOHj7uNIkrFiGcSiE5JfEMbWtNaz4/6pNfO4p5FX/3QsUM7B/BqV3fHxD S+wTwB8NahYZrgzBtDDYSmveJWA+UGGNwnz5GNDePRSC+SQunWE/oQGrbJRbX5ezlrMp mhlA== 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=NXIZJTtVhqCpmyGjXMWK48RPmdnN8LgdLSZxMWzlW54=; b=zfBr6iS+r2wyZL47puseR8kctGI36wDK3ROTzfzMZYhCwpTOuDmZAXbfnt00MX2KvP vzGRcnqC2Dv6sD/ZkGOuEN5H5mHy0htxX04Tq2wmwkmluAjMp77i5E1RnFDrYzEJ3dXS YnzW9z1lGX9fDHN1i9xBmGWaMvxCYb4Xst8sHIRstSetIkGCk1++PEjpqzIPXJVS0R+y ko7u0/dFHx3s0q7uU8Tk86q4PnTNEgVhIOk1PW3sF7LaIa3+XZBOpjvyGGJgky+HFHwp 9zBORW9lRwXphXB3hctndDIF9XqpMBtSpfK+qXqYB7HqAxsf5x4XkiKc47LFp1WEg+fP b5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20210112.gappssmtp.com header.s=20210112 header.b=VUROlRoY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a631553000000b0043f06af782esi16181663pgv.304.2022.10.11.17.06.13; Tue, 11 Oct 2022 17:06:26 -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=@osandov-com.20210112.gappssmtp.com header.s=20210112 header.b=VUROlRoY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiJKXrA (ORCPT + 99 others); Tue, 11 Oct 2022 19:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbiJKXq5 (ORCPT ); Tue, 11 Oct 2022 19:46:57 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7552F1571F for ; Tue, 11 Oct 2022 16:46:53 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id l6so4574372pgu.7 for ; Tue, 11 Oct 2022 16:46:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-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:message-id:reply-to; bh=NXIZJTtVhqCpmyGjXMWK48RPmdnN8LgdLSZxMWzlW54=; b=VUROlRoYgzR70sQJFbpLvMSbh8bjmCg+iVdR7RSAsmc2GNvFxI/h4ESUYMGaloqv4Q O2zBYNVG+uyT7271G7zQNxrozKHUA+Tx6kZUdGKtLcddxNVFpHMIrU4ZQZLlv1LNzmXJ kGS4/EsrZ1wV18wXVjE3xThqiLKPUiPWTwBk5lbdzhfwrLp1Cs+L/gaRUtVL0cueFs/F ZX4sTamhLXAzfmNYbWFgQljACZ7/mn/+E5hysHFGLgE0NM7CpdXVZlOLl8SnZTZ8FuRT BghgxbWTKUJLUFAh2DEQqD1nJFvkll5hBCQ/nAYgV5yY+U+N87OhniNTIovWLG766DP3 7Ubw== 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 :message-id:reply-to; bh=NXIZJTtVhqCpmyGjXMWK48RPmdnN8LgdLSZxMWzlW54=; b=lUz2ApYJnqtk4UX2rjWGM4YQsYtSNykfvrg6E7MBMN/g06Ym+vI2kR4MKTDDygFUEa rSCbeLZ4fwY5x+4SSmRqFmQ6KyUrfhMB2p/o1yaPy6Rl/f0cx1XpYFQB5kYi86Nviubf uaVL9mvj7R+2yPquIZap6M4KHlrXGlU/fjtDkLMuncYGg2pezdtxnJSf4Ah6CfbuWAD5 yhBPUNyPDvLWLt2qBIy5GWraSXYEY3l88AG2uOyayyTpvBR6apgX0YlJXEtPXNg9ebj/ d+o4f58xdV94RpxeSlfQ6ga+ENKiXAkgwUCAdeuXxii0Zc1jZWGUuJOBS+IGJgGk8aKp 1cEw== X-Gm-Message-State: ACrzQf2Ktwxg52Er+iBY8Bwj43nc47tz1yvkvgqoWervIiN5rE241hwV 0pOiY2ApcNHFL1/1jI6QSBjI7Q== X-Received: by 2002:a65:6b8e:0:b0:44f:ec0f:f684 with SMTP id d14-20020a656b8e000000b0044fec0ff684mr22336295pgw.25.1665532012852; Tue, 11 Oct 2022 16:46:52 -0700 (PDT) Received: from relinquished.localdomain ([2600:380:8047:f466:3e42:98bc:71a6:f1b7]) by smtp.gmail.com with ESMTPSA id r27-20020aa7963b000000b005636d8aa98dsm4543908pfg.141.2022.10.11.16.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 16:46:52 -0700 (PDT) Date: Tue, 11 Oct 2022 16:46:49 -0700 From: Omar Sandoval To: Sasha Levin 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 Content-Disposition: inline In-Reply-To: <20221011145015.1622882-33-sashal@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 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. Thanks, Omar