From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com ([156.151.31.81]:45158 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754069Ab3JIHzr (ORCPT ); Wed, 9 Oct 2013 03:55:47 -0400 Message-ID: <52550DC3.8080807@oracle.com> Date: Wed, 09 Oct 2013 16:03:15 +0800 From: Anand Jain MIME-Version: 1.0 To: Wang Shilong CC: dsterba@suse.cz, linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2] btrfs-progs: calculate disk space that a subvol could free References: <1380300329-9123-1-git-send-email-anand.jain@oracle.com> <1380468336-5170-1-git-send-email-anand.jain@oracle.com> <20131001133919.GE18291@twin.jikos.cz> In-Reply-To: Content-Type: text/plain; charset=GB2312 Sender: linux-btrfs-owner@vger.kernel.org List-ID: Wang, > 1. First to search inline extent_data > 2. Secondly search in extent tree to calculate (extent refs=1) but these extents will be of entire fs, how do you filter it for a subvol ? Thanks, Anand > This will avoid n*n rather than n+n which is betterĄ­