Re: [PATCH v2 2/2] Btrfs: snapshot-aware defrag

2012-09-10 Thread David Sterba
On Thu, Sep 06, 2012 at 09:10:52AM +0800, Liu Bo wrote: This comes from one of btrfs's project ideas, As we defragment files, we break any sharing from other snapshots. The balancing code will preserve the sharing, and defrag needs to grow this as well. Now we're able to fill the blank with

Re: [PATCH v2 2/2] Btrfs: snapshot-aware defrag

2012-09-06 Thread Josef Bacik
On Wed, Sep 05, 2012 at 07:10:52PM -0600, Liu Bo wrote: This comes from one of btrfs's project ideas, As we defragment files, we break any sharing from other snapshots. The balancing code will preserve the sharing, and defrag needs to grow this as well. Now we're able to fill the blank with

Re: [PATCH v2 2/2] Btrfs: snapshot-aware defrag

2012-09-06 Thread Liu Bo
On Thu, Sep 06, 2012 at 09:11:53AM -0400, Josef Bacik wrote: On Wed, Sep 05, 2012 at 07:10:52PM -0600, Liu Bo wrote: This comes from one of btrfs's project ideas, As we defragment files, we break any sharing from other snapshots. The balancing code will preserve the sharing, and defrag

Re: [PATCH v2 2/2] Btrfs: snapshot-aware defrag

2012-09-06 Thread Liu Bo
On Thu, Sep 06, 2012 at 09:11:53AM -0400, Josef Bacik wrote: On Wed, Sep 05, 2012 at 07:10:52PM -0600, Liu Bo wrote: This comes from one of btrfs's project ideas, As we defragment files, we break any sharing from other snapshots. The balancing code will preserve the sharing, and defrag

[PATCH v2 2/2] Btrfs: snapshot-aware defrag

2012-09-05 Thread Liu Bo
This comes from one of btrfs's project ideas, As we defragment files, we break any sharing from other snapshots. The balancing code will preserve the sharing, and defrag needs to grow this as well. Now we're able to fill the blank with this patch, in which we make full use of backref walking