Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1087999rdf; Wed, 22 Nov 2023 05:27:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXG1RbAKjiyHVFdG0rTXXsTvq7MjbHs4z+Y54xjn/neDvYr6MaQs5j3Ha/TKCi686i9SVr X-Received: by 2002:a17:90b:1c81:b0:283:2c19:c9bb with SMTP id oo1-20020a17090b1c8100b002832c19c9bbmr2559761pjb.13.1700659656731; Wed, 22 Nov 2023 05:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700659656; cv=none; d=google.com; s=arc-20160816; b=tJ2AqYd2jeohk82tnN2Lx/MlazuqYP75btjdrHhhJPktIFHMGnC6PiAk2bdMbMwg/o FpOjquzhEN0uvc0TVFz6R6oFH4+Is12NaqeA+mM0H4NCd52OGeodJXO/gWvo55Dp5ixb YzXVwqX9vq+XkkcgriPqkAooBs7ZcRXnxHLkDJaVXWYhkDyckyQfJp1wfq9j3cGq36P/ rjYcMihPk701dXFrz5437cjpBLlrBTH+MClKLwxH6uZPJyIWuxmRsY4eIXgxTdBB18XX WDXdF78j11B0qVwnOjU1JMqMpytnXocHefniGT3yRFSkHNAag5dXFSecCFvA1QJ2nIBA XabA== 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=06UQgvsDM53FhAa50yA1PK2H2q0c8nNVYFtY8QHFOPk=; fh=LdrTGKdg+xxk/opA2pEfgAvGU9Cc5QFnNLiLTLd+pLE=; b=uYknId/4XfMeAp6qn1ITZSel/PEHT7UefKyRjn5AF82BHhHOop9zmDrgWV7fmViqdi H1CwYGjn4sTq/ZyDk9185AYOA2E1fwWdpp1rgn1GQJhRovC16lH9pwVZVNNux7HkkVKF +6WZLoMoJvay3xzKXy864CgpHjvOSm/w2PsgfD12YSrhlvTDGSqvSTWun5zBriIlUjys Lb1ZVNJ74Qn0FQz3B43ETIeL+ZKHDJJFsSjYs/bZ1fuLftSIHylofWK2eZJ9xMRhPqD5 LEUBNU2pGMxD869DJXDmB2SJGyCD4E2NOaEkxgVS8Bh0p535XxdBmG3qQohdf4ffQOHB l+3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=hPDpkkem; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="mp6//vQl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i12-20020a17090acf8c00b0027717627cf6si1427467pju.41.2023.11.22.05.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:27:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=hPDpkkem; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="mp6//vQl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 43CFC8075143; Wed, 22 Nov 2023 05:27:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344175AbjKVN10 (ORCPT + 99 others); Wed, 22 Nov 2023 08:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344173AbjKVN1Y (ORCPT ); Wed, 22 Nov 2023 08:27:24 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76135D52; Wed, 22 Nov 2023 05:27:21 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2925C21921; Wed, 22 Nov 2023 13:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1700659640; 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=06UQgvsDM53FhAa50yA1PK2H2q0c8nNVYFtY8QHFOPk=; b=hPDpkkemSi/LHTp/83GdAddL+tceDWiAUaJYsuNGU4bpa5N+xRZOoLGNkaAKE2shTFp2Q2 CyvvQfiDHQ4rierXtVcw+ZAxpxLVhx2gR2H8Zh+/PpNdgFqgb6IVlPZ7AHmdKi+pD/x7YJ kk9XE3197KwPHg4FP4d9kQls2OEbpm0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1700659640; 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=06UQgvsDM53FhAa50yA1PK2H2q0c8nNVYFtY8QHFOPk=; b=mp6//vQlfM7M5vChcsh6kH92WmuRK5LTLD1uO1K+YyW17cFcV4fyHZ+gSOAQHz99AZHhFf J7thqYdRx9Ys5BCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E61B313467; Wed, 22 Nov 2023 13:27:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vXxfN7cBXmVJagAAMHmgww (envelope-from ); Wed, 22 Nov 2023 13:27:19 +0000 Date: Wed, 22 Nov 2023 14:20:10 +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 1/5] btrfs: rename EXTENT_BUFFER_NO_CHECK to EXTENT_BUFFER_CANCELLED Message-ID: <20231122132010.GY11264@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20231121-josef-generic-163-v1-0-049e37185841@wdc.com> <20231121-josef-generic-163-v1-1-049e37185841@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121-josef-generic-163-v1-1-049e37185841@wdc.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -5.11 X-Spamd-Result: default: False [-5.11 / 50.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; REPLY(-4.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[8]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.11)[65.94%] 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 05:27:34 -0800 (PST) On Tue, Nov 21, 2023 at 08:32:30AM -0800, Johannes Thumshirn wrote: > EXTENT_BUFFER_CANCELLED better describes the state of the extent buffer, > namely its writeout has been cancelled. I've read the patches a few times and still can't see how the meaning of 'cancelled' fits. It's about cancelling write out yes, but I don't see anywhere explained why and why the eb is zeroed. This could be put next to the enum definition or to function that does the main part of the logic. You can also rename it to CANCELLED_WRITEOUT or use _ZONED_ in the name so it's clear that it has a special purpose etc, but as it is now I think it should be improved.