NFS: Simplify logic to compare socket addresses in client.c
authorChuck Lever <chuck.lever@oracle.com>
Thu, 19 Mar 2009 00:48:14 +0000 (20:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 28 Mar 2009 20:51:04 +0000 (16:51 -0400)
commit3c8c45dfab78a1919f6f8a3ea46998c487eb7e12
tree532baa9e2ca4a11dcf36bf7542b92e30f8908011
parentd188262d60e879800d3a0a768ecbb216d6ef0d40
NFS: Simplify logic to compare socket addresses in client.c

Callback requests from IPv4 servers are now always guaranteed to be
AF_INET, and never mapped IPv4 AF_INET6 addresses.  Both
nfs_match_client() and nfs_find_client() can now share the same
address comparison logic, so fold them together.

We can also dispense with of most of the conditional compilation
in here.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c