]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40b4c8efba1a4110459cb9a518dd54fa9c8d0871
treeb6e4caf750834591c0991f9aa55b26f1f02b530d
parent7b85d54a700e22fd102b2a8917420eb8a657fc85
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