Skip to content

Commit

Permalink
NSM: Move nsm_addr() to fs/lockd/mon.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
chucklever authored and J. Bruce Fields committed Jan 6, 2009
1 parent e6765b8 commit 8529bc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 0 additions & 10 deletions include/linux/lockd/lockd.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,6 @@ static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host)
return (struct sockaddr *)&host->h_srcaddr;
}

static inline struct sockaddr_in *nsm_addr_in(const struct nsm_handle *handle)
{
return (struct sockaddr_in *)&handle->sm_addr;
}

static inline struct sockaddr *nsm_addr(const struct nsm_handle *handle)
{
return (struct sockaddr *)&handle->sm_addr;
}

/*
* Map an fl_owner_t into a unique 32-bit "pid"
*/
Expand Down

0 comments on commit 8529bc5

Please sign in to comment.