diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-12-11 17:56:22 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-01-06 11:53:55 -0500 |
commit | 8529bc51d30b8f001734b29b21a51b579c260f5b (patch) | |
tree | af1fe6d5cb2d67259d1c977731f523f2337a59eb /fs/lockd | |
parent | e6765b83977f07983c7a10e6bbb19d6c7bbfc3a4 (diff) | |
download | op-kernel-dev-8529bc51d30b8f001734b29b21a51b579c260f5b.zip op-kernel-dev-8529bc51d30b8f001734b29b21a51b579c260f5b.tar.gz |
NSM: Move nsm_addr() to fs/lockd/mon.c
Clean up: nsm_addr_in() is no longer used, and nsm_addr() is used only in
fs/lockd/mon.c, so move it there.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/mon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index dfa9d80..43be31c 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c @@ -55,6 +55,11 @@ static DEFINE_SPINLOCK(nsm_lock); */ int nsm_local_state; +static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm) +{ + return (struct sockaddr *)&nsm->sm_addr; +} + static void nsm_display_ipv4_address(const struct sockaddr *sap, char *buf, const size_t len) { |