diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-20 02:28:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:26:40 -0400 |
commit | e6f684f6443dd37384c63d2f27571350e0b5c8aa (patch) | |
tree | 28f36fabb0b54ba06de89901283e082f5aca8e77 /fs/nfs/callback_proc.c | |
parent | 0dbb4c6799cf8fa8c5ba1926153a30960117477d (diff) |
[PATCH] fs/nfs/callback* passes error values big-endian
[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/callback_proc.c')
-rw-r--r-- | fs/nfs/callback_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 97cf8f71451f..72e55d83756d 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #define NFSDBG_FACILITY NFSDBG_CALLBACK | 15 | #define NFSDBG_FACILITY NFSDBG_CALLBACK |
16 | 16 | ||
17 | unsigned nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res) | 17 | __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res) |
18 | { | 18 | { |
19 | struct nfs_client *clp; | 19 | struct nfs_client *clp; |
20 | struct nfs_delegation *delegation; | 20 | struct nfs_delegation *delegation; |
@@ -55,11 +55,11 @@ out: | |||
55 | return res->status; | 55 | return res->status; |
56 | } | 56 | } |
57 | 57 | ||
58 | unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy) | 58 | __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy) |
59 | { | 59 | { |
60 | struct nfs_client *clp; | 60 | struct nfs_client *clp; |
61 | struct inode *inode; | 61 | struct inode *inode; |
62 | unsigned res; | 62 | __be32 res; |
63 | 63 | ||
64 | res = htonl(NFS4ERR_BADHANDLE); | 64 | res = htonl(NFS4ERR_BADHANDLE); |
65 | clp = nfs_find_client(args->addr, 4); | 65 | clp = nfs_find_client(args->addr, 4); |