diff options
-rw-r--r-- | fs/nfsd/export.c | 4 | ||||
-rw-r--r-- | fs/nfsd/lockd.c | 2 | ||||
-rw-r--r-- | fs/nfsd/nfs4callback.c | 2 | ||||
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfscache.c | 8 | ||||
-rw-r--r-- | fs/nfsd/nfssvc.c | 2 | ||||
-rw-r--r-- | include/linux/nfsd/cache.h | 6 | ||||
-rw-r--r-- | include/linux/nfsd/export.h | 2 | ||||
-rw-r--r-- | include/linux/nfsd/nfsd.h | 2 | ||||
-rw-r--r-- | include/linux/nfsd/nfsfh.h | 2 | ||||
-rw-r--r-- | include/linux/nfsd/state.h | 2 |
11 files changed, 18 insertions, 18 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index e13fa23bd108..f37df46d2eaa 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -1148,12 +1148,12 @@ exp_find(struct auth_domain *clp, int fsid_type, u32 *fsidv, | |||
1148 | * for a given NFSv4 client. The root is defined to be the | 1148 | * for a given NFSv4 client. The root is defined to be the |
1149 | * export point with fsid==0 | 1149 | * export point with fsid==0 |
1150 | */ | 1150 | */ |
1151 | int | 1151 | __be32 |
1152 | exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp, | 1152 | exp_pseudoroot(struct auth_domain *clp, struct svc_fh *fhp, |
1153 | struct cache_req *creq) | 1153 | struct cache_req *creq) |
1154 | { | 1154 | { |
1155 | struct svc_export *exp; | 1155 | struct svc_export *exp; |
1156 | int rv; | 1156 | __be32 rv; |
1157 | u32 fsidv[2]; | 1157 | u32 fsidv[2]; |
1158 | 1158 | ||
1159 | mk_fsid_v1(fsidv, 0); | 1159 | mk_fsid_v1(fsidv, 0); |
diff --git a/fs/nfsd/lockd.c b/fs/nfsd/lockd.c index 9b9e7e127c03..11fdaf7721b4 100644 --- a/fs/nfsd/lockd.c +++ b/fs/nfsd/lockd.c | |||
@@ -25,7 +25,7 @@ | |||
25 | static u32 | 25 | static u32 |
26 | nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) | 26 | nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) |
27 | { | 27 | { |
28 | u32 nfserr; | 28 | __be32 nfserr; |
29 | struct svc_fh fh; | 29 | struct svc_fh fh; |
30 | 30 | ||
31 | /* must initialize before using! but maxsize doesn't matter */ | 31 | /* must initialize before using! but maxsize doesn't matter */ |
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 8497ed4862b2..f57655a7a2b6 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -461,7 +461,7 @@ nfs4_cb_null(struct rpc_task *task, void *dummy) | |||
461 | { | 461 | { |
462 | struct nfs4_client *clp = (struct nfs4_client *)task->tk_msg.rpc_argp; | 462 | struct nfs4_client *clp = (struct nfs4_client *)task->tk_msg.rpc_argp; |
463 | struct nfs4_callback *cb = &clp->cl_callback; | 463 | struct nfs4_callback *cb = &clp->cl_callback; |
464 | u32 addr = htonl(cb->cb_addr); | 464 | __be32 addr = htonl(cb->cb_addr); |
465 | 465 | ||
466 | dprintk("NFSD: nfs4_cb_null task->tk_status %d\n", task->tk_status); | 466 | dprintk("NFSD: nfs4_cb_null task->tk_status %d\n", task->tk_status); |
467 | 467 | ||
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index ae1d47715b90..2e468c9e64d9 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -713,7 +713,7 @@ out_err: | |||
713 | __be32 | 713 | __be32 |
714 | nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_setclientid *setclid) | 714 | nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_setclientid *setclid) |
715 | { | 715 | { |
716 | u32 ip_addr = rqstp->rq_addr.sin_addr.s_addr; | 716 | __be32 ip_addr = rqstp->rq_addr.sin_addr.s_addr; |
717 | struct xdr_netobj clname = { | 717 | struct xdr_netobj clname = { |
718 | .len = setclid->se_namelen, | 718 | .len = setclid->se_namelen, |
719 | .data = setclid->se_name, | 719 | .data = setclid->se_name, |
@@ -878,7 +878,7 @@ out: | |||
878 | __be32 | 878 | __be32 |
879 | nfsd4_setclientid_confirm(struct svc_rqst *rqstp, struct nfsd4_setclientid_confirm *setclientid_confirm) | 879 | nfsd4_setclientid_confirm(struct svc_rqst *rqstp, struct nfsd4_setclientid_confirm *setclientid_confirm) |
880 | { | 880 | { |
881 | u32 ip_addr = rqstp->rq_addr.sin_addr.s_addr; | 881 | __be32 ip_addr = rqstp->rq_addr.sin_addr.s_addr; |
882 | struct nfs4_client *conf, *unconf; | 882 | struct nfs4_client *conf, *unconf; |
883 | nfs4_verifier confirm = setclientid_confirm->sc_confirm; | 883 | nfs4_verifier confirm = setclientid_confirm->sc_confirm; |
884 | clientid_t * clid = &setclientid_confirm->sc_clientid; | 884 | clientid_t * clid = &setclientid_confirm->sc_clientid; |
diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c index fdf7cf3dfadc..6100bbe27432 100644 --- a/fs/nfsd/nfscache.c +++ b/fs/nfsd/nfscache.c | |||
@@ -29,7 +29,7 @@ | |||
29 | */ | 29 | */ |
30 | #define CACHESIZE 1024 | 30 | #define CACHESIZE 1024 |
31 | #define HASHSIZE 64 | 31 | #define HASHSIZE 64 |
32 | #define REQHASH(xid) ((((xid) >> 24) ^ (xid)) & (HASHSIZE-1)) | 32 | #define REQHASH(xid) (((((__force __u32)xid) >> 24) ^ ((__force __u32)xid)) & (HASHSIZE-1)) |
33 | 33 | ||
34 | static struct hlist_head * hash_list; | 34 | static struct hlist_head * hash_list; |
35 | static struct list_head lru_head; | 35 | static struct list_head lru_head; |
@@ -127,8 +127,8 @@ nfsd_cache_lookup(struct svc_rqst *rqstp, int type) | |||
127 | struct hlist_node *hn; | 127 | struct hlist_node *hn; |
128 | struct hlist_head *rh; | 128 | struct hlist_head *rh; |
129 | struct svc_cacherep *rp; | 129 | struct svc_cacherep *rp; |
130 | u32 xid = rqstp->rq_xid, | 130 | __be32 xid = rqstp->rq_xid; |
131 | proto = rqstp->rq_prot, | 131 | u32 proto = rqstp->rq_prot, |
132 | vers = rqstp->rq_vers, | 132 | vers = rqstp->rq_vers, |
133 | proc = rqstp->rq_proc; | 133 | proc = rqstp->rq_proc; |
134 | unsigned long age; | 134 | unsigned long age; |
@@ -258,7 +258,7 @@ found_entry: | |||
258 | * In this case, nfsd_cache_update is called with statp == NULL. | 258 | * In this case, nfsd_cache_update is called with statp == NULL. |
259 | */ | 259 | */ |
260 | void | 260 | void |
261 | nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, u32 *statp) | 261 | nfsd_cache_update(struct svc_rqst *rqstp, int cachetype, __be32 *statp) |
262 | { | 262 | { |
263 | struct svc_cacherep *rp; | 263 | struct svc_cacherep *rp; |
264 | struct kvec *resv = &rqstp->rq_res.head[0], *cachv; | 264 | struct kvec *resv = &rqstp->rq_res.head[0], *cachv; |
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 8067118b1c0c..0aaccb03bf76 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c | |||
@@ -491,7 +491,7 @@ out: | |||
491 | } | 491 | } |
492 | 492 | ||
493 | int | 493 | int |
494 | nfsd_dispatch(struct svc_rqst *rqstp, u32 *statp) | 494 | nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp) |
495 | { | 495 | { |
496 | struct svc_procedure *proc; | 496 | struct svc_procedure *proc; |
497 | kxdrproc_t xdr; | 497 | kxdrproc_t xdr; |
diff --git a/include/linux/nfsd/cache.h b/include/linux/nfsd/cache.h index c3a3557c2a5b..007480cd6a60 100644 --- a/include/linux/nfsd/cache.h +++ b/include/linux/nfsd/cache.h | |||
@@ -26,14 +26,14 @@ struct svc_cacherep { | |||
26 | c_type, /* status, buffer */ | 26 | c_type, /* status, buffer */ |
27 | c_secure : 1; /* req came from port < 1024 */ | 27 | c_secure : 1; /* req came from port < 1024 */ |
28 | struct sockaddr_in c_addr; | 28 | struct sockaddr_in c_addr; |
29 | u32 c_xid; | 29 | __be32 c_xid; |
30 | u32 c_prot; | 30 | u32 c_prot; |
31 | u32 c_proc; | 31 | u32 c_proc; |
32 | u32 c_vers; | 32 | u32 c_vers; |
33 | unsigned long c_timestamp; | 33 | unsigned long c_timestamp; |
34 | union { | 34 | union { |
35 | struct kvec u_vec; | 35 | struct kvec u_vec; |
36 | u32 u_status; | 36 | __be32 u_status; |
37 | } c_u; | 37 | } c_u; |
38 | }; | 38 | }; |
39 | 39 | ||
@@ -75,7 +75,7 @@ enum { | |||
75 | void nfsd_cache_init(void); | 75 | void nfsd_cache_init(void); |
76 | void nfsd_cache_shutdown(void); | 76 | void nfsd_cache_shutdown(void); |
77 | int nfsd_cache_lookup(struct svc_rqst *, int); | 77 | int nfsd_cache_lookup(struct svc_rqst *, int); |
78 | void nfsd_cache_update(struct svc_rqst *, int, u32 *); | 78 | void nfsd_cache_update(struct svc_rqst *, int, __be32 *); |
79 | 79 | ||
80 | #endif /* __KERNEL__ */ | 80 | #endif /* __KERNEL__ */ |
81 | #endif /* NFSCACHE_H */ | 81 | #endif /* NFSCACHE_H */ |
diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h index 27666f5b8b53..045e38cdbe64 100644 --- a/include/linux/nfsd/export.h +++ b/include/linux/nfsd/export.h | |||
@@ -117,7 +117,7 @@ struct svc_export * exp_parent(struct auth_domain *clp, | |||
117 | struct cache_req *reqp); | 117 | struct cache_req *reqp); |
118 | int exp_rootfh(struct auth_domain *, | 118 | int exp_rootfh(struct auth_domain *, |
119 | char *path, struct knfsd_fh *, int maxsize); | 119 | char *path, struct knfsd_fh *, int maxsize); |
120 | int exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq); | 120 | __be32 exp_pseudoroot(struct auth_domain *, struct svc_fh *fhp, struct cache_req *creq); |
121 | __be32 nfserrno(int errno); | 121 | __be32 nfserrno(int errno); |
122 | 122 | ||
123 | extern struct cache_detail svc_export_cache; | 123 | extern struct cache_detail svc_export_cache; |
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 19a3c83d496e..68d29b66c6e2 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
@@ -64,7 +64,7 @@ extern struct svc_serv *nfsd_serv; | |||
64 | * Function prototypes. | 64 | * Function prototypes. |
65 | */ | 65 | */ |
66 | int nfsd_svc(unsigned short port, int nrservs); | 66 | int nfsd_svc(unsigned short port, int nrservs); |
67 | int nfsd_dispatch(struct svc_rqst *rqstp, u32 *statp); | 67 | int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); |
68 | 68 | ||
69 | /* nfsd/vfs.c */ | 69 | /* nfsd/vfs.c */ |
70 | int fh_lock_parent(struct svc_fh *, struct dentry *); | 70 | int fh_lock_parent(struct svc_fh *, struct dentry *); |
diff --git a/include/linux/nfsd/nfsfh.h b/include/linux/nfsd/nfsfh.h index 749bad1ca16f..f3b51d62ec7d 100644 --- a/include/linux/nfsd/nfsfh.h +++ b/include/linux/nfsd/nfsfh.h | |||
@@ -157,7 +157,7 @@ typedef struct svc_fh { | |||
157 | __u64 fh_post_size; /* i_size */ | 157 | __u64 fh_post_size; /* i_size */ |
158 | unsigned long fh_post_blocks; /* i_blocks */ | 158 | unsigned long fh_post_blocks; /* i_blocks */ |
159 | unsigned long fh_post_blksize;/* i_blksize */ | 159 | unsigned long fh_post_blksize;/* i_blksize */ |
160 | __u32 fh_post_rdev[2];/* i_rdev */ | 160 | __be32 fh_post_rdev[2];/* i_rdev */ |
161 | struct timespec fh_post_atime; /* i_atime */ | 161 | struct timespec fh_post_atime; /* i_atime */ |
162 | struct timespec fh_post_mtime; /* i_mtime */ | 162 | struct timespec fh_post_mtime; /* i_mtime */ |
163 | struct timespec fh_post_ctime; /* i_ctime */ | 163 | struct timespec fh_post_ctime; /* i_ctime */ |
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index a597e2e72469..c3673f487e84 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -125,7 +125,7 @@ struct nfs4_client { | |||
125 | char cl_recdir[HEXDIR_LEN]; /* recovery dir */ | 125 | char cl_recdir[HEXDIR_LEN]; /* recovery dir */ |
126 | nfs4_verifier cl_verifier; /* generated by client */ | 126 | nfs4_verifier cl_verifier; /* generated by client */ |
127 | time_t cl_time; /* time of last lease renewal */ | 127 | time_t cl_time; /* time of last lease renewal */ |
128 | u32 cl_addr; /* client ipaddress */ | 128 | __be32 cl_addr; /* client ipaddress */ |
129 | struct svc_cred cl_cred; /* setclientid principal */ | 129 | struct svc_cred cl_cred; /* setclientid principal */ |
130 | clientid_t cl_clientid; /* generated by server */ | 130 | clientid_t cl_clientid; /* generated by server */ |
131 | nfs4_verifier cl_confirm; /* generated by server */ | 131 | nfs4_verifier cl_confirm; /* generated by server */ |