aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs2xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
-rw-r--r--fs/nfs/nfs2xdr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c
index f0015fa876e1..3b939e055a08 100644
--- a/fs/nfs/nfs2xdr.c
+++ b/fs/nfs/nfs2xdr.c
@@ -23,12 +23,13 @@
23#include <linux/nfs.h> 23#include <linux/nfs.h>
24#include <linux/nfs2.h> 24#include <linux/nfs2.h>
25#include <linux/nfs_fs.h> 25#include <linux/nfs_fs.h>
26#include "internal.h"
27
28#include "internal.h"
26 29
27#define NFSDBG_FACILITY NFSDBG_XDR 30#define NFSDBG_FACILITY NFSDBG_XDR
28/* #define NFS_PARANOIA 1 */ 31/* #define NFS_PARANOIA 1 */
29 32
30extern int nfs_stat_to_errno(int stat);
31
32/* Mapping from NFS error code to "errno" error code. */ 33/* Mapping from NFS error code to "errno" error code. */
33#define errno_NFSERR_IO EIO 34#define errno_NFSERR_IO EIO
34 35
@@ -131,7 +132,8 @@ xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr)
131 fattr->du.nfs2.blocksize = ntohl(*p++); 132 fattr->du.nfs2.blocksize = ntohl(*p++);
132 rdev = ntohl(*p++); 133 rdev = ntohl(*p++);
133 fattr->du.nfs2.blocks = ntohl(*p++); 134 fattr->du.nfs2.blocks = ntohl(*p++);
134 fattr->fsid_u.nfs3 = ntohl(*p++); 135 fattr->fsid.major = ntohl(*p++);
136 fattr->fsid.minor = 0;
135 fattr->fileid = ntohl(*p++); 137 fattr->fileid = ntohl(*p++);
136 p = xdr_decode_time(p, &fattr->atime); 138 p = xdr_decode_time(p, &fattr->atime);
137 p = xdr_decode_time(p, &fattr->mtime); 139 p = xdr_decode_time(p, &fattr->mtime);