[sheepdog] [PATCH v3 03/10] work: remove sheep_priv.h and trace.h from include files

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue May 14 08:54:13 CEST 2013


At Tue, 14 May 2013 14:14:44 +0800,
Liu Yuan wrote:
> 
> On 05/14/2013 12:13 PM, MORITA Kazutaka wrote:
> > +static size_t get_nr_nodes(void)
> > +{
> > +	const struct vnode_info *vinfo;
> > +
> > +	vinfo = get_vnode_info();
> > +	if (vinfo == NULL)
> > +		return 1;
> > +
> > +	return vinfo->nr_nodes;
> > +}
> 
> Needn't we call put_vnode_info()?

Ah, yes.  Thanks for the catch.  I'll send v4.

Thanks,

Kazutaka



More information about the sheepdog mailing list