Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222175
b: refs/heads/master
c: 1e657bd
h: refs/heads/master
i:
  222173: c72b912
  222171: 898f426
  222167: da05d62
  222159: ba32f2a
  222143: 2aec1e2
v: v3
  • Loading branch information
Paulius Zaleckas authored and Trond Myklebust committed Nov 16, 2010
1 parent 6b684f6 commit 0cf310e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e35f8e7c61c88f9a979a4e6f7f4ffd4c158a88a
refs/heads/master: 1e657bd51f313d87fbbb22d1edf625dba87ef353
8 changes: 7 additions & 1 deletion trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@

#define NFSDBG_FACILITY NFSDBG_VFS

#ifdef CONFIG_NFS_V3
#define NFS_DEFAULT_VERSION 3
#else
#define NFS_DEFAULT_VERSION 2
#endif

enum {
/* Mount options that take no arguments */
Opt_soft, Opt_hard,
Expand Down Expand Up @@ -2277,7 +2283,7 @@ static int nfs_get_sb(struct file_system_type *fs_type,
};
int error = -ENOMEM;

data = nfs_alloc_parsed_mount_data(3);
data = nfs_alloc_parsed_mount_data(NFS_DEFAULT_VERSION);
mntfh = nfs_alloc_fhandle();
if (data == NULL || mntfh == NULL)
goto out_free_fh;
Expand Down

0 comments on commit 0cf310e

Please sign in to comment.