]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
lockd: Support AF_INET6 when hashing addresses in nlm_lookup_host
authorChuck Lever <chuck.lever@oracle.com>
Wed, 3 Sep 2008 18:36:08 +0000 (14:36 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 29 Sep 2008 22:13:39 +0000 (18:13 -0400)
commitede2fea099cf1dabe41e5b9563558bc7aee82248
treeb007bc10b257a0615323c8dbc446aa3b9f0f1d67
parent781b61a6f4ff94cb8c14cf598b547f5d5c490969
lockd: Support AF_INET6 when hashing addresses in nlm_lookup_host

Adopt an approach similar to the RPC server's auth cache (from Aurelien
Charbon and Brian Haley).

Note nlm_lookup_host()'s existing IP address hash function has the same
issue with correctness on little-endian systems as the original IPv4 auth
cache hash function, so I've also updated it with a hash function similar
to the new auth cache hash function.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/host.c