diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-30 18:39:20 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-30 18:39:20 -0400 |
commit | 4f97615d19c370d1d907ef37f8bcd9c3672851ca (patch) | |
tree | 2940916463b7d665f396170623333a91caf1f007 | |
parent | 292f3eeef00a20fa0ef4feec62792ad0065760a0 (diff) |
NFS: Fix a compile issue when CONFIG_NFS_V4_1 is undefined
struct nfs_direct_req can't compile when struct pnfs_ds_commit_info
is undefined.
Reported-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Fred Isaman <iisaman@netapp.com>
-rw-r--r-- | include/linux/nfs_xdr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index c940d46eb423..6deb8f097c42 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1176,6 +1176,11 @@ struct nfs41_free_stateid_res { | |||
1176 | struct nfs4_sequence_res seq_res; | 1176 | struct nfs4_sequence_res seq_res; |
1177 | }; | 1177 | }; |
1178 | 1178 | ||
1179 | #else | ||
1180 | |||
1181 | struct pnfs_ds_commit_info { | ||
1182 | }; | ||
1183 | |||
1179 | #endif /* CONFIG_NFS_V4_1 */ | 1184 | #endif /* CONFIG_NFS_V4_1 */ |
1180 | 1185 | ||
1181 | struct nfs_page; | 1186 | struct nfs_page; |