Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2205966ybd; Thu, 27 Jun 2019 08:28:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbRFkWmw1TiAHbYTJ4csYwMDNRWZjeee/yEuHfO7gWntZTWDj/Ifq0XnrncU9ln9ZuuixC X-Received: by 2002:a17:902:aa03:: with SMTP id be3mr5358225plb.240.1561649321364; Thu, 27 Jun 2019 08:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561649321; cv=none; d=google.com; s=arc-20160816; b=geLj32XnOHJyDbkG0z/awXaLKZiFitpEuMQggpC85J+CNK7hqfjfPwkHKUq/ThtgJa R/5YPy/kr+mnDMvPC2FKia/Wq+XwL4xZZt+TgL3C/YgZ4M9uUp6AbGJv96jVErg1mLQw /Piurhub4Si6XlePgHXGz4ziAq2XP5V5ZATZR5PLDxSVBgQY5UfSl+LTiyVDzs1BHtP5 QcolXm5tA2EqRueg6sXcNXxPjjfrKPD5Z6leu8zEYC75QS9YoiKfb1yawZknTIeGUf8c sj5gw30FcZYi71OCWeDlZu76Xq6nArnopW+tjtu5h3uurOZIljzjYC7umJqAFrFACctE GlCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=iNB4CJHVIJ2CH8yssHwL1Rs7PbH23BO+GvVqyIqEhq4=; b=eoslYVqMY2why8zEBaCS5AFCNyLHmvFpxwPivr5clQU1k2PKDtnnFGpEUvUdxxew8w dxGvlr6WXeOmnwNkpedV+Hz6X6V+mDD7bED8hYJwavv8M6aYKi3ZKATT192lPNI5t9dB h6NZq5oHcodV9DqzXU4cJLJA4qfbNYioLkT5Kf1tADEz3Xe2wJT2BXb8solR3sMiDJI9 g5JfN45bm7qBrMk9xJ75GZEy0MQpKFeKQGY7fN3P3UZ1IOXSDxo5nTIS/42L4qqCITv3 vnJQ8EpQ9iPS0OPxEemHaOmThwsPHT89IwKa5xa0rj4qtnH/+wamMkUkvRxUnwNdX0bI fdiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c145si2842551pfb.9.2019.06.27.08.28.24; Thu, 27 Jun 2019 08:28:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbfF0P2K (ORCPT + 99 others); Thu, 27 Jun 2019 11:28:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:46756 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726187AbfF0P2J (ORCPT ); Thu, 27 Jun 2019 11:28:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 726F6AC41; Thu, 27 Jun 2019 15:28:08 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 4598EDA811; Thu, 27 Jun 2019 17:28:54 +0200 (CEST) Date: Thu, 27 Jun 2019 17:28:54 +0200 From: David Sterba To: Naohiro Aota Cc: "dsterba@suse.cz" , "linux-btrfs@vger.kernel.org" , David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , "linux-kernel@vger.kernel.org" , Hannes Reinecke , "linux-fsdevel@vger.kernel.org" , Damien Le Moal , Matias =?iso-8859-1?Q?Bj=F8rling?= , Johannes Thumshirn , Bart Van Assche Subject: Re: [PATCH 07/19] btrfs: do sequential extent allocation in HMZONED mode Message-ID: <20190627152854.GC20977@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Naohiro Aota , "linux-btrfs@vger.kernel.org" , David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , "linux-kernel@vger.kernel.org" , Hannes Reinecke , "linux-fsdevel@vger.kernel.org" , Damien Le Moal , Matias =?iso-8859-1?Q?Bj=F8rling?= , Johannes Thumshirn , Bart Van Assche References: <20190607131025.31996-1-naohiro.aota@wdc.com> <20190607131025.31996-8-naohiro.aota@wdc.com> <20190617223007.GI19057@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 08:49:00AM +0000, Naohiro Aota wrote: > On 2019/06/18 7:29, David Sterba wrote: > > On Fri, Jun 07, 2019 at 10:10:13PM +0900, Naohiro Aota wrote: > >> + u64 unusable; > > > > 'unusable' is specific to the zones, so 'zone_unusable' would make it > > clear. The terminilogy around space is confusing already (we have > > unused, free, reserved, allocated, slack). > > Sure. I will change the name. > > Or, is it better toadd new struct "btrfs_seq_alloc_info" and move all > these variable there? Then, I can just add one pointer to the struct here. There are 4 new members, but the block group structure is large already (528 bytes) so adding a few more will not make the allocations worse. There are also holes or inefficient types used so the size can be squeezed a bit, but this is unrelated to this patchset.