[Sheepdog] [PATCH v2 2/2] use binary search in hval_to_sheep()

Liu Yuan namei.unix at gmail.com
Mon May 14 09:11:45 CEST 2012


On 05/14/2012 02:29 PM, levin li wrote:

> +static inline int bsearch_in_entries(struct sd_vnode *entries,
> +			int nr_entries, uint64_t id)


Maybe get_vnode_pos() is a better name to hide the low level
implementation and more descriptive of what we gets from the function.

Thanks,
Yuan



More information about the sheepdog mailing list