Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D58FC001B0 for ; Wed, 9 Aug 2023 16:42:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbjHIQmq (ORCPT ); Wed, 9 Aug 2023 12:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjHIQmp (ORCPT ); Wed, 9 Aug 2023 12:42:45 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7956F1BD9 for ; Wed, 9 Aug 2023 09:42:44 -0700 (PDT) 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-out2.suse.de (Postfix) with ESMTPS id 3A53A1F390; Wed, 9 Aug 2023 16:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691599363; 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=YIUHkgM922oR1KLQk1mbGCDpqaZGs7xEo/n0I2X/5PQ=; b=jkR8psx4wMzvQOiQkPcnH7PQtKfjq47Qt3MacQ+NNb9Hh3vitMVI7ddlL2V3BNjReI+cfF 6+7W4de0gzswA9WllI1vVGq07YyZJVDkSptmIhllbWZSROuHWUwwLW7XyeOxil5wV8qt8x ExPFJCXMI8ntCwkIgn1X4EdLQ5Z/SIU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691599363; 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=YIUHkgM922oR1KLQk1mbGCDpqaZGs7xEo/n0I2X/5PQ=; b=5aGImmX/xL5xIdkDbdzhK5+jwgoD7R4jbsR/bbkcZW3PQKEIJZbtLW16/b+75/9cC2st5M uNRKwRGo6pyvNpCg== 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 19120133B5; Wed, 9 Aug 2023 16:42:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5YwyBQPC02TgagAAMHmgww (envelope-from ); Wed, 09 Aug 2023 16:42:43 +0000 Date: Wed, 9 Aug 2023 18:42:41 +0200 From: David Sterba To: Naohiro Aota Cc: linux-btrfs@vger.kernel.org, hch@infradead.org, josef@toxicpanda.com, dsterba@suse.cz Subject: Re: [PATCH v3 07/10] btrfs: zoned: activate metadata block group on write time Message-ID: Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Naohiro Aota , linux-btrfs@vger.kernel.org, hch@infradead.org, josef@toxicpanda.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Aug 08, 2023 at 01:12:37AM +0900, Naohiro Aota wrote: > --- a/fs/btrfs/zoned.c > +++ b/fs/btrfs/zoned.c > @@ -65,6 +65,9 @@ > > #define SUPER_INFO_SECTORS ((u64)BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT) > > +static void wait_eb_writebacks(struct btrfs_block_group *block_group); > +static int do_zone_finish(struct btrfs_block_group *block_group, bool fully_written); Looks like the forward declarations can't be avoided due to btrfs_check_meta_write_pointer being defined earlier in the file.