Skip to content

Commit

Permalink
NSM: Move NSM-related XDR data structures to lockd's xdr.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 0c7aef4 commit 9c1bfd0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
14 changes: 14 additions & 0 deletions fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@

#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;
Expand Down
20 changes: 0 additions & 20 deletions include/linux/lockd/sm_inter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
#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 */

0 comments on commit 9c1bfd0

Please sign in to comment.