diff options
Diffstat (limited to 'fs/nfsd/nfscache.c')
-rw-r--r-- | fs/nfsd/nfscache.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |