NSM: Move NSM-related XDR data structures to lockd's xdr.h
authorChuck Lever <chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:01:59 +0000 (19:01 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:52 +0000 (11:53 -0500)
Clean up: NSM's XDR data structures are used only in fs/lockd/mon.c,
so move them there.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/mon.c
include/linux/lockd/sm_inter.h

index 3bb71e1b1e1ff35568c2ed527196d0d815231bdc..81308832e99427c3f7c43b281aa79163b204b2ff 100644 (file)
 
 #define NLMDBG_FACILITY                NLMDBG_MONITOR
 
+struct nsm_args {
+       __be32                  addr;           /* remote address */
+       u32                     prog;           /* RPC callback info */
+       u32                     vers;
+       u32                     proc;
+
+       char                    *mon_name;
+};
+
+struct nsm_res {
+       u32                     status;
+       u32                     state;
+};
+
 static struct rpc_clnt *       nsm_create(void);
 
 static struct rpc_program      nsm_program;
index 896a5e3033231518c176a6165daa41e1edbb2278..dd9d8a5bb316a60494eb70e4afe1ce282ac6296b 100644 (file)
 #define SM_MAXSTRLEN   1024
 #define SM_PRIV_SIZE   16
 
-/*
- * Arguments for all calls to statd
- */
-struct nsm_args {
-       __be32          addr;           /* remote address */
-       u32             prog;           /* RPC callback info */
-       u32             vers;
-       u32             proc;
-
-       char *          mon_name;
-};
-
-/*
- * Result returned by statd
- */
-struct nsm_res {
-       u32             status;
-       u32             state;
-};
-
 extern int     nsm_local_state;
 
 #endif /* LINUX_LOCKD_SM_INTER_H */