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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 A40BDC433E0 for ; Tue, 29 Dec 2020 09:44:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58CD4206ED for ; Tue, 29 Dec 2020 09:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbgL2Jnu convert rfc822-to-8bit (ORCPT ); Tue, 29 Dec 2020 04:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgL2Jnt (ORCPT ); Tue, 29 Dec 2020 04:43:49 -0500 Received: from mail.lichtvoll.de (lichtvoll.de [IPv6:2001:67c:14c:12f::11:100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44FCEC0613D6 for ; Tue, 29 Dec 2020 01:43:09 -0800 (PST) Received: from 127.0.0.1 (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.lichtvoll.de (Postfix) with ESMTPSA id 3B7D61AAA2D; Tue, 29 Dec 2020 10:42:23 +0100 (CET) From: Martin Steigerwald To: =?ISO-8859-1?Q?St=E9phane?= Lesimple , Qu Wenruo , David Arendt , linux-btrfs@vger.kernel.org, Qu Wenruo Subject: Re: 5.6-5.10 balance regression? Date: Tue, 29 Dec 2020 10:42:21 +0100 Message-ID: <11691195.O9o76ZdvQC@merkaba> In-Reply-To: <5f819b6c-d737-bb73-5382-370875b599c1@gmx.com> References: <518c15d55c3d540b26341a773ff7d99f@lesimple.fr> <485db52d-cf4d-3a5c-9253-13cdb40ccd5e@gmx.com> <5f819b6c-d737-bb73-5382-370875b599c1@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Authentication-Results: mail.lichtvoll.de; auth=pass smtp.auth=martin smtp.mailfrom=martin@lichtvoll.de Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Qu Wenruo - 29.12.20, 01:44:07 CET: > So what I can do is only to add a warning message to the problem. > > To solve your problem, I also submitted a patch to btrfs-progs, to > force v1 space cache cleaning even if the fs has v2 space cache > enabled. > > Or, you can disable v2 space cache first, using "btrfs check > --clear-space-cache v2" first, then "btrfs check --clear-space_cache > v1", and finally mount the fs with "space_cache=v2" again. > > To verify there is no space cache v1 left, you can run the following > command to verify: > > # btrfs ins dump-tree -t root | grep EXTENT_DATA > > It should output nothing. I have v1 space_cache stuff on filesystems which use v2 space_cache as well, so… the fully working way to completely switch to spacecache_v2 for any BTRFS filesystem with space cache v1, is what you wrote above? Or would it be more straight forward than that with a newer kernel? Best, -- Martin