diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-09-03 14:35:46 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-09-29 18:13:39 -0400 |
commit | 90151e6e4d00a3150d03d52170c246734b274622 (patch) | |
tree | bb0c7b1ab2b08ca86e87a30e0da0779a14a9b94d /fs/lockd/svcsubs.c | |
parent | b4ed58fd34d4def88bda59f9cc566ec9fca6a096 (diff) | |
download | linux-90151e6e4d00a3150d03d52170c246734b274622.tar.gz linux-90151e6e4d00a3150d03d52170c246734b274622.tar.bz2 linux-90151e6e4d00a3150d03d52170c246734b274622.zip |
lockd: Use sockaddr_storage for h_saddr field
To store larger addresses in the nlm_host structure, make h_saddr a
sockaddr_storage. And let's call it something more self-explanatory:
"saddr" could easily be mistaken for "server address".
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd/svcsubs.c')
-rw-r--r-- | fs/lockd/svcsubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svcsubs.c b/fs/lockd/svcsubs.c index 198b4e55b373..d3d1330d7c27 100644 --- a/fs/lockd/svcsubs.c +++ b/fs/lockd/svcsubs.c @@ -418,7 +418,7 @@ EXPORT_SYMBOL_GPL(nlmsvc_unlock_all_by_sb); static int nlmsvc_match_ip(void *datap, struct nlm_host *host) { - return nlm_cmp_addr(&host->h_saddr, datap); + return nlm_cmp_addr(nlm_srcaddr_in(host), datap); } /** |