Re: [PATCH 05/10] Btrfs-progs: add function btrfs_get_subvol to get root_info of a subvol

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

 



On Mon, Jan 28, 2013 at 08:42:06PM -0800, Wang Shilong wrote:
> > +	rbn = rb_first(&rl.root);
> > +	while(rbn) {
> > +		ri = rb_entry(rbn, struct root_info, rb_node);
> > +		resolve_root(&rl, ri, root_id);
>      
>   Here subvolume/snapshot deletion may happen,add a check here...
>   if resolve_root return -ENOENT..it means deletion happens...
> 
>   ret = reslove_root(&rl, ri, root_id);
>   if (ret)
>       goto again;
> 
[...]
>                    
>  again???
> > +		rbn = rb_next(rbn);
> > +	}

Then it looks like a for (...) { } pattern with 'continue' instead of
'goto'.

david
--
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