From: Pavel Emelyanov Date: Tue, 5 Oct 2010 11:53:08 +0000 (+0400) Subject: sunrpc: Merge the xs_bind code X-Git-Tag: v2.6.37-rc1~113^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb59b68280d9779cc16591115547678d1c74a66;p=pandora-kernel.git sunrpc: Merge the xs_bind code There's the only difference betseen the xs_bind4 and the xs_bind6 - the size of sockaddr structure they use. Fortunatelly its size can be indirectly get from the transport. Change since v1: * use sockaddr_storage instead of sockaddr * use rpc_set_port instead of manual port assigning Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever [bfields@redhat.com: fix address family initialization] Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed