Re: [PATCH] Btrfs: optimize check for stale device

2015-10-07 Thread David Sterba
On Wed, Oct 07, 2015 at 04:59:35PM +0800, Anand Jain wrote: > > @@ -620,7 +620,8 @@ static noinline int device_list_add(const char *path, > > * if there is new btrfs on an already registered device, > > * then remove the stale device entry. > > */ > > - btrfs_free_stale_device(devi

Re: [PATCH] Btrfs: optimize check for stale device

2015-10-07 Thread David Sterba
On Mon, Oct 05, 2015 at 04:57:17PM +0800, Anand Jain wrote: > optimize check for stale device to only be checked when there > is device added or changed. If there is no update to the > device, there is no need to call btrfs_free_stale_device(). > > Signed-off-by: Anand Jain Ok for the change, sa

Re: [PATCH] Btrfs: optimize check for stale device

2015-10-07 Thread Anand Jain
On 10/05/2015 04:57 PM, Anand Jain wrote: optimize check for stale device to only be checked when there is device added or changed. If there is no update to the device, there is no need to call btrfs_free_stale_device(). Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 3 ++- 1 file chan

[PATCH] Btrfs: optimize check for stale device

2015-10-05 Thread Anand Jain
optimize check for stale device to only be checked when there is device added or changed. If there is no update to the device, there is no need to call btrfs_free_stale_device(). Signed-off-by: Anand Jain --- fs/btrfs/volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git