[sheepdog] [PATCH] sheep: remove unused function same_node()
Liu Yuan
namei.unix at gmail.com
Sun Aug 5 18:03:32 CEST 2012
On 08/05/2012 08:09 PM, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly at taobao.com>
>
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
> include/sheep.h | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/include/sheep.h b/include/sheep.h
> index d37aaa2..337762e 100644
> --- a/include/sheep.h
> +++ b/include/sheep.h
> @@ -57,15 +57,6 @@ static inline void sd_init_req(struct sd_req *req, uint8_t opcode)
> req->proto_ver = opcode < 0x80 ? SD_PROTO_VER : SD_SHEEP_PROTO_VER;
> }
>
> -static inline int same_node(struct sd_vnode *e, int n1, int n2)
> -{
> - if (memcmp(e[n1].nid.addr, e[n2].nid.addr, sizeof(e->nid.addr)) == 0 &&
> - e[n1].nid.port == e[n2].nid.port)
> - return 1;
> -
> - return 0;
> -}
> -
> static inline int same_zone(struct sd_vnode *e, int n1, int n2)
> {
> return e[n1].zone == e[n2].zone;
>
Applied, thanks.
Yuan
More information about the sheepdog
mailing list