[sheepdog] [PATCH v2 8/8] sheep: use node_id_cmp to compare node

Christoph Hellwig hch at infradead.org
Mon Jun 25 18:40:57 CEST 2012


On Mon, Jun 25, 2012 at 10:31:50PM +0800, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> - remove vnode_node_cmp(), node_cmp()

I would prefer to keem them as wrappers using container_of to get at
struct node_id - thay way type safety for the case of struct node_id
moving around in the structs is kept instead of assuming they are
the first member.

The reminder of that patch probably should be folded into the previous
one.



More information about the sheepdog mailing list