diff options
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index db040e971932..12b99825a1c1 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -53,9 +53,11 @@ | |||
53 | #include <linux/nfs4.h> | 53 | #include <linux/nfs4.h> |
54 | #include <linux/nfs_fs.h> | 54 | #include <linux/nfs_fs.h> |
55 | #include <linux/nfs_idmap.h> | 55 | #include <linux/nfs_idmap.h> |
56 | |||
56 | #include "nfs4_fs.h" | 57 | #include "nfs4_fs.h" |
57 | #include "internal.h" | 58 | #include "internal.h" |
58 | #include "pnfs.h" | 59 | #include "pnfs.h" |
60 | #include "netns.h" | ||
59 | 61 | ||
60 | #define NFSDBG_FACILITY NFSDBG_XDR | 62 | #define NFSDBG_FACILITY NFSDBG_XDR |
61 | 63 | ||
@@ -1702,6 +1704,7 @@ static void encode_create_session(struct xdr_stream *xdr, | |||
1702 | char machine_name[NFS4_MAX_MACHINE_NAME_LEN]; | 1704 | char machine_name[NFS4_MAX_MACHINE_NAME_LEN]; |
1703 | uint32_t len; | 1705 | uint32_t len; |
1704 | struct nfs_client *clp = args->client; | 1706 | struct nfs_client *clp = args->client; |
1707 | struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); | ||
1705 | u32 max_resp_sz_cached; | 1708 | u32 max_resp_sz_cached; |
1706 | 1709 | ||
1707 | /* | 1710 | /* |
@@ -1743,7 +1746,7 @@ static void encode_create_session(struct xdr_stream *xdr, | |||
1743 | *p++ = cpu_to_be32(RPC_AUTH_UNIX); /* auth_sys */ | 1746 | *p++ = cpu_to_be32(RPC_AUTH_UNIX); /* auth_sys */ |
1744 | 1747 | ||
1745 | /* authsys_parms rfc1831 */ | 1748 | /* authsys_parms rfc1831 */ |
1746 | *p++ = cpu_to_be32((u32)clp->cl_boot_time.tv_nsec); /* stamp */ | 1749 | *p++ = (__be32)nn->boot_time.tv_nsec; /* stamp */ |
1747 | p = xdr_encode_opaque(p, machine_name, len); | 1750 | p = xdr_encode_opaque(p, machine_name, len); |
1748 | *p++ = cpu_to_be32(0); /* UID */ | 1751 | *p++ = cpu_to_be32(0); /* UID */ |
1749 | *p++ = cpu_to_be32(0); /* GID */ | 1752 | *p++ = cpu_to_be32(0); /* GID */ |