NFS: Add support for AF_INET6 addresses in nfs_compare_super()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 10 Dec 2007 19:57:38 +0000 (14:57 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:53 +0000 (02:05 -0500)
commitfd00a8ff8e37815c9df49f5cf09786e441e1396b
treeb6e4caf750834591c0991f9aa55b26f1f02b530d
parent3f43c6667acb4e02962b2829a4d4ebb6b6e6f70e
NFS: Add support for AF_INET6 addresses in nfs_compare_super()

Refactor nfs_compare_super() and add AF_INET6 support.

Replace the generic memcmp() to document explicitly what parts of the
addresses must match in this check, and make the comparison independent
of the lengths of both addresses.

A side benefit is both tests are more computationally efficient than a
memcmp().

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