Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp548665rdh; Thu, 23 Nov 2023 11:03:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4XY47SQdQvmHDIn4l2loA2yJAu7HPuo1zpLcnGoMxUcS6Ah+Hpa6AzKGDKZb/OwiaW4MA X-Received: by 2002:a17:90a:e7cd:b0:280:cd5f:bf90 with SMTP id kb13-20020a17090ae7cd00b00280cd5fbf90mr416707pjb.23.1700766215706; Thu, 23 Nov 2023 11:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700766215; cv=none; d=google.com; s=arc-20160816; b=DUETNC8BkWFMtqSUfVLHcWQfW2wGzkTc+fa5tIrqcVFxxhztye9jFbBMC65dwnNjk9 QcotMyYitxg3KwjqOzffy54CqeRorJ0audX8sj8rwKG3cAtSfbCgpTxJd9OkF4iagDRF bz/suHrGs+875M10meH0/gw7CWgsrlDi1dt0cNQHyQ1uYRITMGv0yIyQc77bn8nhTXlu RSC28hqanUewlqYsN83zz3J56A+7IW4xmpsEBT4nyTPoqYJM6+46zW25G8xyiQ0J1NTq KQEpDQVqfcj72LlI9wXEBEG6rnEbtuuw+R7rED7Ko0mJdbkXTyxxFjs/NQQOgqJF3LN3 fwsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=v9TGYvTKQ0lFAleqc3DOkuuAQwtF3iftxKoOgpQgym0=; fh=LdrTGKdg+xxk/opA2pEfgAvGU9Cc5QFnNLiLTLd+pLE=; b=NUJIHHHBc3SgAhLHBEa1hCd08KC8eCyvL/ADLP7nT8LveKDP2HYHQ7GiySphPCt3VZ dZJmjyMfPF9pHWOlXSuQqBAByNOTbihvlCbVO3LIk8loiYZKq8cdXKWqqLQWRHqRb6K+ uNpvBr38LuCThNytzCo2AA8X/lB56QUTIbTtZDKFI4rnf5ZQInq5TS1Rj2bpaQkR56Io DtRj7H5/4TbtiftPMCm9j1zKEnJC4LxFzN7yytreZ2/6IonAHLAwHLo6osmFUwrTvRko xsw+EqUIAFnp5RAXjAIHNaHgkJsQ2BiSoHMEMuJOgQBr4G8Hgu/29AzAa4BQTy4rfVas GNaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=V01vOEzD; dkim=neutral (no key) header.i=@suse.cz header.b=fxKgeRib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t25-20020a6564d9000000b005b8dd557b38si1796503pgv.14.2023.11.23.11.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=V01vOEzD; dkim=neutral (no key) header.i=@suse.cz header.b=fxKgeRib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 46A65805FD1A; Thu, 23 Nov 2023 11:02:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbjKWTCR (ORCPT + 99 others); Thu, 23 Nov 2023 14:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjKWTCP (ORCPT ); Thu, 23 Nov 2023 14:02:15 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B5A9E; Thu, 23 Nov 2023 11:02:22 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id CCAE421985; Thu, 23 Nov 2023 19:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1700766140; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v9TGYvTKQ0lFAleqc3DOkuuAQwtF3iftxKoOgpQgym0=; b=V01vOEzDysHb/o2JkFC0tz+oDkugDTXBWRmgAJaVfee1D6eghHb44978VEcmWmIEzOAV2q /klBoZZIvGp0utZZ2HmJ1sLdxc//mRCEYYhnTbTFa95RFx5mrXtiPz1IWjVNI8xwk6jOsK 8PGx0hxJKyDnsWFeZK+Z6hURU4E7y+M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1700766140; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v9TGYvTKQ0lFAleqc3DOkuuAQwtF3iftxKoOgpQgym0=; b=fxKgeRibAOl/dvl2/5KA96PdEpS5fV78+I84Y7I47drLVHxV61ZEVI5S8oi3b1/SIr3ZCZ /WI4iPHuJSDl1DBg== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id C07112C16B; Thu, 23 Nov 2023 19:02:20 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 9186FDA86C; Thu, 23 Nov 2023 19:55:11 +0100 (CET) Date: Thu, 23 Nov 2023 19:55:11 +0100 From: David Sterba To: Johannes Thumshirn Cc: Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Naohiro Aota Subject: Re: [PATCH v2 0/5] btrfs: zoned: remove extent_buffer redirtying Message-ID: <20231123185511.GC31451@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20231123-josef-generic-163-v2-0-ed1a79a8e51e@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123-josef-generic-163-v2-0-ed1a79a8e51e@wdc.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spamd-Bar: +++++++++++++++++ Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out1.suse.de: 149.44.160.134 is neither permitted nor denied by domain of dsterba@suse.cz) smtp.mailfrom=dsterba@suse.cz X-Rspamd-Server: rspamd1 X-Spamd-Result: default: False [17.29 / 50.00]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(1.20)[suse.cz]; RWL_MAILSPIKE_GOOD(-1.00)[149.44.160.134:from]; R_SPF_SOFTFAIL(4.60)[~all]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.50)[1.000]; RCPT_COUNT_SEVEN(0.00)[8]; VIOLATED_DIRECT_SPF(3.50)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-0.00)[15.58%] X-Spam-Score: 17.29 X-Rspamd-Queue-Id: CCAE421985 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:02:32 -0800 (PST) On Thu, Nov 23, 2023 at 07:47:14AM -0800, Johannes Thumshirn wrote: > Since the beginning of zoned mode, I've promised Josef to get rid of the > extent_buffer redirtying, but never actually got around to doing so. > > Then 2 weeks ago our CI has hit an ASSERT() in this area and I started to look > into it again. After some discussion with Christoph we came to the conclusion > to finally take the time and get rid of the extent_buffer redirtying once and > for all. > > Patch one renames EXTENT_BUFFER_NO_CHECK into EXTENT_BUFFER_ZONED_ZEROOUT, > because this fits the new model somewhat better. > > Number two sets the cancel bit instead of clearing the dirty bit from a zoned > extent_buffer. > > Number three removes the last remaining bits of btrfs_redirty_list_add(). > > The last two patches in this series are just trivial cleanups I came across > while looking at the code. > > --- > Changes in v2: > - Rename EXTENT_BUFFER_CANCELLED to EXTENT_BUFFER_ZONED_ZEROOUT > - Add comments why we're marking the buffer as zeroout and zero it. > - Add Reviews from Josef and Christoph > - Link to v1: https://lore.kernel.org/r/20231121-josef-generic-163-v1-0-049e37185841@wdc.com > > --- > Johannes Thumshirn (5): > btrfs: rename EXTENT_BUFFER_NO_CHECK to EXTENT_BUFFER_ZONED_ZEROOUT > btrfs: zoned: don't clear dirty flag of extent buffer > btrfs: remove now unneeded btrfs_redirty_list_add > btrfs: use memset_page instead of opencoding it > btrfs: reflow btrfs_free_tree_block With the rename in patch 5/5 added to misc-next, thanks.