Re: [PATCH 7/7] btrfs: add helper function check device delete able

2018-07-20 Thread Anand Jain
On 07/20/2018 09:34 AM, Anand Jain wrote: On 07/19/2018 07:45 PM, David Sterba wrote: On Mon, Jul 16, 2018 at 10:58:12PM +0800, Anand Jain wrote: Move the section of the code which performs the check if the device is indelible, move that into a helper function. Signed-off-by: Anand Jain

Re: [PATCH 7/7] btrfs: add helper function check device delete able

2018-07-19 Thread David Sterba
On Mon, Jul 16, 2018 at 10:58:12PM +0800, Anand Jain wrote: > Move the section of the code which performs the check if the device is > indelible, move that into a helper function. > > Signed-off-by: Anand Jain > --- > v1->v2: Rename function to btrfs_get_device_for_delete(), thanks > Nikolay. >

[PATCH 7/7] btrfs: add helper function check device delete able

2018-07-16 Thread Anand Jain
Move the section of the code which performs the check if the device is indelible, move that into a helper function. Signed-off-by: Anand Jain --- v1->v2: Rename function to btrfs_get_device_for_delete(), thanks Nikolay. fs/btrfs/volumes.c | 49 ++---