nfsd4: fix v3-less build
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 13 Feb 2015 17:34:25 +0000 (12:34 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 16 Feb 2015 16:43:13 +0000 (11:43 -0500)
commita51f25a587e16bf89dce3f821de99b7717782859
tree1758c57c3578030897930d86d20ae0aace88d879
parent0ab39de6b341189589093777f241dd803b417fc0
nfsd4: fix v3-less build

Includes of pnfs.h in export.c and fcntl.c also bring in xdr4.h, which
won't build without CONFIG_NFSD_V3, breaking non-V3 builds.  Ifdef-out
most of pnfs.h in that case.

Reported-by: Bas Peters <baspeters93@gmail.com>
Reported-by: Jim Davis <jim.epost@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Fixes: 9cf514ccfac "nfsd: implement pNFS operations"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/pnfs.h