Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c1bfd03 authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields
Browse files

NSM: Move NSM-related XDR data structures to lockd's xdr.h



Clean up: NSM's XDR data structures are used only in fs/lockd/mon.c,
so move them there.

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 0c7aef45
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,20 @@


#define NLMDBG_FACILITY		NLMDBG_MONITOR
#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_clnt *	nsm_create(void);


static struct rpc_program	nsm_program;
static struct rpc_program	nsm_program;
+0 −20
Original line number Original line Diff line number Diff line
@@ -21,26 +21,6 @@
#define SM_MAXSTRLEN	1024
#define SM_MAXSTRLEN	1024
#define SM_PRIV_SIZE	16
#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;
extern int	nsm_local_state;


#endif /* LINUX_LOCKD_SM_INTER_H */
#endif /* LINUX_LOCKD_SM_INTER_H */