diff options
author | Jeff Layton <jlayton@redhat.com> | 2009-08-14 18:57:54 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-08-21 17:27:42 +0200 |
commit | 4516fc0454e7ffe2f369e80045b23c2b32155004 (patch) | |
tree | b1068b9fbad76b5381b103fc57617373ec2ae37d /fs/lockd/mon.c | |
parent | Merge branch 'nfs-for-2.6.32' of git://git.linux-nfs.org/projects/trondmy/nfs... (diff) | |
download | linux-4516fc0454e7ffe2f369e80045b23c2b32155004.tar.xz linux-4516fc0454e7ffe2f369e80045b23c2b32155004.zip |
sunrpc: add routine for comparing addresses
lockd needs these sort of routines, as does the NFSv4 callback code.
Move lockd's routines into common code and rename them so that they can
be used by others.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd/mon.c')
-rw-r--r-- | fs/lockd/mon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index 30c933188dd7..f956651d0f65 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c @@ -209,7 +209,7 @@ static struct nsm_handle *nsm_lookup_addr(const struct sockaddr *sap) struct nsm_handle *nsm; list_for_each_entry(nsm, &nsm_handles, sm_link) - if (nlm_cmp_addr(nsm_addr(nsm), sap)) + if (rpc_cmp_addr(nsm_addr(nsm), sap)) return nsm; return NULL; } |