summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-06-17 19:23:18 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-06-17 19:23:18 +1000
commit9e9b8509043be3ccb6c045df11200ee589e9a42a (patch)
tree77cb39adf649503794b39d0e3021b305b25e2a87
parent540d0d73096fbad735cb652e1566c7f2b54d31af (diff)
nfs fix 1
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--fs/nfs/super.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 226ae6ad55ae..e951972c4f7f 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1437,7 +1437,10 @@ nfs_remount(struct super_block *sb, int *flags, char *raw_data)
* ones were explicitly specified. Fall back to legacy behavior and
* just return success.
*/
- if ((sb->s_type == &nfs4_fs_type && options4->version == 1) ||
+ if (
+#ifdef CONFIG_NFS_V4
+ (sb->s_type == &nfs4_fs_type && options4->version == 1) ||
+#endif
(sb->s_type == &nfs_fs_type && options->version >= 1 &&
options->version <= 6))
return 0;