Re: [PATCH 2/4] btrfs: separate defrag and property compression

2017-07-21 Thread David Sterba
On Thu, Jul 20, 2017 at 06:49:19PM +0800, Anand Jain wrote: > > > On 07/18/2017 02:46 AM, David Sterba wrote: > > Add new value for compression to distinguish between defrag and > > property. Previously, a single variable was used and this caused clashes > > when the per-file 'compression' was se

Re: [PATCH 2/4] btrfs: separate defrag and property compression

2017-07-20 Thread Anand Jain
On 07/18/2017 02:46 AM, David Sterba wrote: Add new value for compression to distinguish between defrag and property. Previously, a single variable was used and this caused clashes when the per-file 'compression' was set and a defrag -c was called. How about.. deprecate property compressi

[PATCH 2/4] btrfs: separate defrag and property compression

2017-07-17 Thread David Sterba
Add new value for compression to distinguish between defrag and property. Previously, a single variable was used and this caused clashes when the per-file 'compression' was set and a defrag -c was called. The property-compression is loaded when the file is open, defrag will overwrite the same vari