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(device);
> > +   if (ret > 0)
> > +           btrfs_free_stale_device(device);
> >
> >     *fs_devices_ret = fs_devices;
> 
>   I have to withdraw this. The ret is 0 when there is new fsid on a
>   previously known device that means we need to clear the stale. v.sorry.

Ah, right.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to