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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E8CAC001B0 for ; Wed, 26 Jul 2023 13:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232772AbjGZNHk (ORCPT ); Wed, 26 Jul 2023 09:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232871AbjGZNHh (ORCPT ); Wed, 26 Jul 2023 09:07:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 504E41FF3 for ; Wed, 26 Jul 2023 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=AZd+dooxkQke2o4wNccvEWmgRpoI+6n+kZkq1ewllM8=; b=Na2A+H2OAn+n2Cc5AG4PT2Ajj6 UGQjPQedQbE3ItqwLND+uQ21buwHwO72z/YKDccxjeTNOiBZF1ymYb+5BeSnbAYfUzvhuxwUq1qSt Cw4786h7NvOoOBZgyWVn5Fn+NLXy/NKD7buFWuFivCrv76R+yu0Jk5BMnxKrQ/5FWzlyawcdKAdhY 48iOIAhDcB/RLVeTBqMEr5sATrdgp7JfEBDHIo4YavuljnFCZ+Jm5K6sSrWlEOa0pEKmg8IML8bQV LDfPOX4TXN5fXhVTjJr4jXPEq3dSgq8CA1RenSVeCwJFHLOW8hFcjcSAhRYxd/g+bArEVsYP5Q4Zf FHwJarcw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qOeEj-00AUg0-0c; Wed, 26 Jul 2023 13:07:29 +0000 Date: Wed, 26 Jul 2023 06:07:29 -0700 From: "hch@infradead.org" To: Naohiro Aota Cc: "hch@infradead.org" , "linux-btrfs@vger.kernel.org" Subject: Re: [PATCH 4/8] btrfs: zoned: reserve zones for an active metadata/system block group Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Jul 25, 2023 at 09:07:19AM +0000, Naohiro Aota wrote: > We can convert the profile from SINGLE to DUP while the FS is running. So, > simply storing it won't work. > > But, we can hook the converting process and increase the reservation count > if it is converting to DUP? Then, we can calculate it on mount and record > it in fs_info. That sounds like the right thing to do to me.