mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
libceph: rename ceph_encode_addr to ceph_encode_banner_addr
...ditto for the decode function. We only use these functions to fix up banner addresses now, so let's name them more appropriately. Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: "Yan, Zheng" <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
This commit is contained in:
parent
d3c3c0a841
commit
2c66de560f
2 changed files with 5 additions and 5 deletions
|
|
@ -222,7 +222,7 @@ EXPORT_SYMBOL(ceph_pr_addr);
|
|||
static void encode_my_addr(struct ceph_messenger *msgr)
|
||||
{
|
||||
memcpy(&msgr->my_enc_addr, &msgr->inst.addr, sizeof(msgr->my_enc_addr));
|
||||
ceph_encode_addr(&msgr->my_enc_addr);
|
||||
ceph_encode_banner_addr(&msgr->my_enc_addr);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -1734,14 +1734,14 @@ static int read_partial_banner(struct ceph_connection *con)
|
|||
ret = read_partial(con, end, size, &con->actual_peer_addr);
|
||||
if (ret <= 0)
|
||||
goto out;
|
||||
ceph_decode_addr(&con->actual_peer_addr);
|
||||
ceph_decode_banner_addr(&con->actual_peer_addr);
|
||||
|
||||
size = sizeof (con->peer_addr_for_me);
|
||||
end += size;
|
||||
ret = read_partial(con, end, size, &con->peer_addr_for_me);
|
||||
if (ret <= 0)
|
||||
goto out;
|
||||
ceph_decode_addr(&con->peer_addr_for_me);
|
||||
ceph_decode_banner_addr(&con->peer_addr_for_me);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue