summaryrefslogtreecommitdiff
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-30 18:39:20 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-30 18:39:20 -0400
commit4f97615d19c370d1d907ef37f8bcd9c3672851ca (patch)
tree2940916463b7d665f396170623333a91caf1f007 /include/linux/nfs_xdr.h
parent292f3eeef00a20fa0ef4feec62792ad0065760a0 (diff)
downloadlwn-4f97615d19c370d1d907ef37f8bcd9c3672851ca.tar.gz
lwn-4f97615d19c370d1d907ef37f8bcd9c3672851ca.zip
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>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h5
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 {
struct nfs4_sequence_res seq_res;
};
+#else
+
+struct pnfs_ds_commit_info {
+};
+
#endif /* CONFIG_NFS_V4_1 */
struct nfs_page;