Re: [PATCH v2 0/5] define BTRFS_DEV_STATE

2017-12-05 Thread Anand Jain
On 12/05/2017 09:07 PM, David Sterba wrote: On Tue, Dec 05, 2017 at 09:20:38AM +0800, Anand Jain wrote: On 12/05/2017 04:28 AM, David Sterba wrote: On Mon, Dec 04, 2017 at 12:54:51PM +0800, Anand Jain wrote: As of now device properties and states are being represented as int variable. So c

Re: [PATCH v2 0/5] define BTRFS_DEV_STATE

2017-12-05 Thread David Sterba
On Tue, Dec 05, 2017 at 09:20:38AM +0800, Anand Jain wrote: > > > On 12/05/2017 04:28 AM, David Sterba wrote: > > On Mon, Dec 04, 2017 at 12:54:51PM +0800, Anand Jain wrote: > >> As of now device properties and states are being represented as int > >> variable. So clean that up using bitwise oper

Re: [PATCH v2 0/5] define BTRFS_DEV_STATE

2017-12-04 Thread Anand Jain
On 12/05/2017 04:28 AM, David Sterba wrote: On Mon, Dec 04, 2017 at 12:54:51PM +0800, Anand Jain wrote: As of now device properties and states are being represented as int variable. So clean that up using bitwise operations. Also patches in the ML such as device failed state needs this cleanup

Re: [PATCH v2 0/5] define BTRFS_DEV_STATE

2017-12-04 Thread David Sterba
On Mon, Dec 04, 2017 at 12:54:51PM +0800, Anand Jain wrote: > As of now device properties and states are being represented as int > variable. So clean that up using bitwise operations. Also patches in > the ML such as device failed state needs this cleanup as well. > > V2: > Accepts all comments

[PATCH v2 0/5] define BTRFS_DEV_STATE

2017-12-03 Thread Anand Jain
As of now device properties and states are being represented as int variable. So clean that up using bitwise operations. Also patches in the ML such as device failed state needs this cleanup as well. V2: Accepts all comments from Nikolay. Drops can_discard. Adds BTRFS_DEV_STATE_REPLACE_TGT and