diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
| -rw-r--r-- | fs/nfs/nfs4proc.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 47c7e6e3910d..8118036cc449 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
| @@ -138,10 +138,10 @@ const u32 nfs4_fs_locations_bitmap[2] = { | |||
| 138 | | FATTR4_WORD1_MOUNTED_ON_FILEID | 138 | | FATTR4_WORD1_MOUNTED_ON_FILEID |
| 139 | }; | 139 | }; |
| 140 | 140 | ||
| 141 | static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | 141 | static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dentry, |
| 142 | struct nfs4_readdir_arg *readdir) | 142 | struct nfs4_readdir_arg *readdir) |
| 143 | { | 143 | { |
| 144 | u32 *start, *p; | 144 | __be32 *start, *p; |
| 145 | 145 | ||
| 146 | BUG_ON(readdir->count < 80); | 146 | BUG_ON(readdir->count < 80); |
| 147 | if (cookie > 2) { | 147 | if (cookie > 2) { |
| @@ -162,7 +162,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | |||
| 162 | * when talking to the server, we always send cookie 0 | 162 | * when talking to the server, we always send cookie 0 |
| 163 | * instead of 1 or 2. | 163 | * instead of 1 or 2. |
| 164 | */ | 164 | */ |
| 165 | start = p = (u32 *)kmap_atomic(*readdir->pages, KM_USER0); | 165 | start = p = kmap_atomic(*readdir->pages, KM_USER0); |
| 166 | 166 | ||
| 167 | if (cookie == 0) { | 167 | if (cookie == 0) { |
| 168 | *p++ = xdr_one; /* next */ | 168 | *p++ = xdr_one; /* next */ |
| @@ -1314,11 +1314,9 @@ nfs4_open_revalidate(struct inode *dir, struct dentry *dentry, int openflags, st | |||
| 1314 | case -EROFS: | 1314 | case -EROFS: |
| 1315 | lookup_instantiate_filp(nd, (struct dentry *)state, NULL); | 1315 | lookup_instantiate_filp(nd, (struct dentry *)state, NULL); |
| 1316 | return 1; | 1316 | return 1; |
| 1317 | case -ENOENT: | 1317 | default: |
| 1318 | if (dentry->d_inode == NULL) | 1318 | goto out_drop; |
| 1319 | return 1; | ||
| 1320 | } | 1319 | } |
| 1321 | goto out_drop; | ||
| 1322 | } | 1320 | } |
| 1323 | if (state->inode == dentry->d_inode) { | 1321 | if (state->inode == dentry->d_inode) { |
| 1324 | nfs4_intent_set_file(nd, dentry, state); | 1322 | nfs4_intent_set_file(nd, dentry, state); |
| @@ -2917,11 +2915,11 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short po | |||
| 2917 | .rpc_resp = clp, | 2915 | .rpc_resp = clp, |
| 2918 | .rpc_cred = cred, | 2916 | .rpc_cred = cred, |
| 2919 | }; | 2917 | }; |
| 2920 | u32 *p; | 2918 | __be32 *p; |
| 2921 | int loop = 0; | 2919 | int loop = 0; |
| 2922 | int status; | 2920 | int status; |
| 2923 | 2921 | ||
| 2924 | p = (u32*)sc_verifier.data; | 2922 | p = (__be32*)sc_verifier.data; |
| 2925 | *p++ = htonl((u32)clp->cl_boot_time.tv_sec); | 2923 | *p++ = htonl((u32)clp->cl_boot_time.tv_sec); |
| 2926 | *p = htonl((u32)clp->cl_boot_time.tv_nsec); | 2924 | *p = htonl((u32)clp->cl_boot_time.tv_nsec); |
| 2927 | 2925 | ||
