Re: [PATCH 1/2] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag

2012-08-25 Thread Liu Bo
On 08/25/2012 01:34 AM, David Sterba wrote: On Thu, Aug 23, 2012 at 07:01:33PM +0800, Liu Bo wrote: We're going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents

Re: [PATCH 1/2] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag

2012-08-24 Thread David Sterba
On Thu, Aug 23, 2012 at 07:01:33PM +0800, Liu Bo wrote: We're going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents that need defragmented, so later on

[PATCH 1/2] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag

2012-08-23 Thread Liu Bo
We're going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents that need defragmented, so later on writeback thread can differentiate between normal writeback and

Re: [PATCH 1/2] Btrfs: use flag EXTENT_DEFRAG for snapshot-aware defrag

2012-08-23 Thread Liu Bo
On 08/23/2012 07:01 PM, Liu Bo wrote: We're going to use this flag EXTENT_DEFRAG to indicate which range belongs to defragment so that we can implement snapshow-aware defrag: We set the EXTENT_DEFRAG flag when dirtying the extents that need defragmented, so later on writeback thread can