SUNRPC: Bury "#ifdef IPV6" in svc_create_xprt()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 26 Jan 2010 19:04:04 +0000 (14:04 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 26 Jan 2010 22:56:43 +0000 (17:56 -0500)
commitd6783b2b6c4050df0ba0a84c6842cf5bc2212ef9
treed5c5d2ca1be2a53bb6e948da76c2ecd0f74ee27c
parent205ba42308729f4f41f21d314a4435e7de5c9a2e
SUNRPC: Bury "#ifdef IPV6" in svc_create_xprt()

Clean up:  Bruce observed we have more or less common logic in each of
svc_create_xprt()'s callers:  the check to create an IPv6 RPC listener
socket only if CONFIG_IPV6 is set.  I'm about to add another case
that does just the same.

If we move the ifdefs into __svc_xpo_create(), then svc_create_xprt()
call sites can get rid of the "#ifdef" ugliness, and can use the same
logic with or without IPv6 support available in the kernel.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svc.c
fs/nfs/callback.c
net/sunrpc/svc_xprt.c