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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux