diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-20 02:28:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:26:40 -0400 |
commit | 0dbb4c6799cf8fa8c5ba1926153a30960117477d (patch) | |
tree | 9d8f75f2f407a5758fa4ef3d8c03694f138c3304 /fs/nfs/nfs4proc.c | |
parent | 8687b63afbe42103730bff4d3f7bfff3463c303e (diff) |
[PATCH] xdr annotations: NFS readdir entries
on-the-wire data is big-endian
[in large part pulled from Alexey's patch]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 7421bcb3b728..8d09b47c91b9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -141,7 +141,7 @@ const u32 nfs4_fs_locations_bitmap[2] = { | |||
141 | static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | 141 | static void nfs4_setup_readdir(u64 cookie, u32 *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 */ |