summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/mon.c5
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)
{
OpenPOWER on IntegriCloud