diff options
| author | Paul Mackerras | 2006-12-04 05:59:07 +0100 | 
|---|---|---|
| committer | Paul Mackerras | 2006-12-04 05:59:07 +0100 | 
| commit | 79acbb3ff2d8095b692e1502b9eb2ccec348de26 (patch) | |
| tree | 6ab773e5a8f9de2cd6443362b21d0d6fffe3b35e /include/linux/lockd | |
| parent | [PATCH] ppc: Fix io.h for config with CONFIG_PCI not set (diff) | |
| parent | [XFRM]: Fix aevent structuring to be more complete. (diff) | |
| download | kernel-qcow2-linux-79acbb3ff2d8095b692e1502b9eb2ccec348de26.tar.gz kernel-qcow2-linux-79acbb3ff2d8095b692e1502b9eb2ccec348de26.tar.xz kernel-qcow2-linux-79acbb3ff2d8095b692e1502b9eb2ccec348de26.zip | |
Merge branch 'linux-2.6' into for-linus
Diffstat (limited to 'include/linux/lockd')
| -rw-r--r-- | include/linux/lockd/bind.h | 5 | ||||
| -rw-r--r-- | include/linux/lockd/lockd.h | 12 | ||||
| -rw-r--r-- | include/linux/lockd/share.h | 4 | ||||
| -rw-r--r-- | include/linux/lockd/xdr.h | 30 | ||||
| -rw-r--r-- | include/linux/lockd/xdr4.h | 26 | 
5 files changed, 43 insertions, 34 deletions
| diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h index 81e3a185f951..aa50d89eacd7 100644 --- a/include/linux/lockd/bind.h +++ b/include/linux/lockd/bind.h @@ -10,6 +10,11 @@  #define LINUX_LOCKD_BIND_H  #include <linux/lockd/nlm.h> +/* need xdr-encoded error codes too, so... */ +#include <linux/lockd/xdr.h> +#ifdef CONFIG_LOCKD_V4 +#include <linux/lockd/xdr4.h> +#endif  /* Dummy declarations */  struct svc_rqst; diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 2909619c0295..862d9730a60d 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h @@ -154,7 +154,7 @@ int		  nlm_async_reply(struct nlm_rqst *, u32, const struct rpc_call_ops *);  struct nlm_wait * nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl);  void		  nlmclnt_finish_block(struct nlm_wait *block);  int		  nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout); -u32		  nlmclnt_grant(const struct sockaddr_in *addr, const struct nlm_lock *); +__be32		  nlmclnt_grant(const struct sockaddr_in *addr, const struct nlm_lock *);  void		  nlmclnt_recovery(struct nlm_host *);  int		  nlmclnt_reclaim(struct nlm_host *, struct file_lock *);  void		  nlmclnt_next_cookie(struct nlm_cookie *); @@ -184,12 +184,12 @@ typedef int	  (*nlm_host_match_fn_t)(struct nlm_host *cur, struct nlm_host *ref)  /*   * Server-side lock handling   */ -u32		  nlmsvc_lock(struct svc_rqst *, struct nlm_file *, +__be32		  nlmsvc_lock(struct svc_rqst *, struct nlm_file *,  					struct nlm_lock *, int, struct nlm_cookie *); -u32		  nlmsvc_unlock(struct nlm_file *, struct nlm_lock *); -u32		  nlmsvc_testlock(struct nlm_file *, struct nlm_lock *, +__be32		  nlmsvc_unlock(struct nlm_file *, struct nlm_lock *); +__be32		  nlmsvc_testlock(struct nlm_file *, struct nlm_lock *,  					struct nlm_lock *); -u32		  nlmsvc_cancel_blocked(struct nlm_file *, struct nlm_lock *); +__be32		  nlmsvc_cancel_blocked(struct nlm_file *, struct nlm_lock *);  unsigned long	  nlmsvc_retry_blocked(void);  void		  nlmsvc_traverse_blocks(struct nlm_host *, struct nlm_file *,  					nlm_host_match_fn_t match); @@ -198,7 +198,7 @@ void		  nlmsvc_grant_reply(struct nlm_cookie *, u32);  /*   * File handling for the server personality   */ -u32		  nlm_lookup_file(struct svc_rqst *, struct nlm_file **, +__be32		  nlm_lookup_file(struct svc_rqst *, struct nlm_file **,  					struct nfs_fh *);  void		  nlm_release_file(struct nlm_file *);  void		  nlmsvc_mark_resources(void); diff --git a/include/linux/lockd/share.h b/include/linux/lockd/share.h index cd7816e74c05..630c5bf69b07 100644 --- a/include/linux/lockd/share.h +++ b/include/linux/lockd/share.h @@ -21,9 +21,9 @@ struct nlm_share {  	u32			s_mode;		/* deny mode */  }; -u32	nlmsvc_share_file(struct nlm_host *, struct nlm_file *, +__be32	nlmsvc_share_file(struct nlm_host *, struct nlm_file *,  					       struct nlm_args *); -u32	nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *, +__be32	nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,  					       struct nlm_args *);  void	nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *,  					       nlm_host_match_fn_t); diff --git a/include/linux/lockd/xdr.h b/include/linux/lockd/xdr.h index bb0a0f1caa91..29e7d9fc9dad 100644 --- a/include/linux/lockd/xdr.h +++ b/include/linux/lockd/xdr.h @@ -13,6 +13,8 @@  #include <linux/nfs.h>  #include <linux/sunrpc/xdr.h> +struct svc_rqst; +  #define NLM_MAXCOOKIELEN    	32  #define NLM_MAXSTRLEN		1024 @@ -22,6 +24,8 @@  #define	nlm_lck_blocked		__constant_htonl(NLM_LCK_BLOCKED)  #define	nlm_lck_denied_grace_period	__constant_htonl(NLM_LCK_DENIED_GRACE_PERIOD) +#define nlm_drop_reply		__constant_htonl(30000) +  /* Lock info passed via NLM */  struct nlm_lock {  	char *			caller; @@ -86,19 +90,19 @@ struct nlm_reboot {   */  #define NLMSVC_XDRSIZE		sizeof(struct nlm_args) -int	nlmsvc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_encode_testres(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlmsvc_decode_lockargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_decode_cancargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_decode_unlockargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_encode_res(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlmsvc_decode_res(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlmsvc_encode_void(struct svc_rqst *, u32 *, void *); -int	nlmsvc_decode_void(struct svc_rqst *, u32 *, void *); -int	nlmsvc_decode_shareargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_encode_shareres(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlmsvc_decode_notify(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlmsvc_decode_reboot(struct svc_rqst *, u32 *, struct nlm_reboot *); +int	nlmsvc_decode_testargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_encode_testres(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlmsvc_decode_lockargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_decode_cancargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_decode_unlockargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_encode_res(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlmsvc_decode_res(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlmsvc_encode_void(struct svc_rqst *, __be32 *, void *); +int	nlmsvc_decode_void(struct svc_rqst *, __be32 *, void *); +int	nlmsvc_decode_shareargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_encode_shareres(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlmsvc_decode_notify(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlmsvc_decode_reboot(struct svc_rqst *, __be32 *, struct nlm_reboot *);  /*  int	nlmclt_encode_testargs(struct rpc_rqst *, u32 *, struct nlm_args *);  int	nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *); diff --git a/include/linux/lockd/xdr4.h b/include/linux/lockd/xdr4.h index 3cc1ae25009b..dd12b4c9e613 100644 --- a/include/linux/lockd/xdr4.h +++ b/include/linux/lockd/xdr4.h @@ -23,19 +23,19 @@ -int	nlm4svc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_encode_testres(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlm4svc_decode_lockargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_decode_cancargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_decode_unlockargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_encode_res(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlm4svc_decode_res(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlm4svc_encode_void(struct svc_rqst *, u32 *, void *); -int	nlm4svc_decode_void(struct svc_rqst *, u32 *, void *); -int	nlm4svc_decode_shareargs(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_encode_shareres(struct svc_rqst *, u32 *, struct nlm_res *); -int	nlm4svc_decode_notify(struct svc_rqst *, u32 *, struct nlm_args *); -int	nlm4svc_decode_reboot(struct svc_rqst *, u32 *, struct nlm_reboot *); +int	nlm4svc_decode_testargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_encode_testres(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlm4svc_decode_lockargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_decode_cancargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_decode_unlockargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_encode_res(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlm4svc_decode_res(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlm4svc_encode_void(struct svc_rqst *, __be32 *, void *); +int	nlm4svc_decode_void(struct svc_rqst *, __be32 *, void *); +int	nlm4svc_decode_shareargs(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_encode_shareres(struct svc_rqst *, __be32 *, struct nlm_res *); +int	nlm4svc_decode_notify(struct svc_rqst *, __be32 *, struct nlm_args *); +int	nlm4svc_decode_reboot(struct svc_rqst *, __be32 *, struct nlm_reboot *);  /*  int	nlmclt_encode_testargs(struct rpc_rqst *, u32 *, struct nlm_args *);  int	nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *); | 
