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

Liu Yuan namei.unix at gmail.com
Tue May 14 08:14:44 CEST 2013


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()?

Thanks,
Yuan



More information about the sheepdog mailing list