diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2010-12-22 18:57:02 +0100 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2010-12-22 18:57:02 +0100 | 
| commit | 4b7bd364700d9ac8372eff48832062b936d0793b (patch) | |
| tree | 0dbf78c95456a0b02d07fcd473281f04a87e266d /fs/nfs/super.c | |
| parent | c0d8768af260e2cbb4bf659ae6094a262c86b085 (diff) | |
| parent | 90a8a73c06cc32b609a880d48449d7083327e11a (diff) | |
| download | olio-linux-3.10-4b7bd364700d9ac8372eff48832062b936d0793b.tar.xz olio-linux-3.10-4b7bd364700d9ac8372eff48832062b936d0793b.zip  | |
Merge branch 'master' into for-next
Conflicts:
	MAINTAINERS
	arch/arm/mach-omap2/pm24xx.c
	drivers/scsi/bfa/bfa_fcpim.c
Needed to update to apply fixes for which the old branch was too
outdated.
Diffstat (limited to 'fs/nfs/super.c')
| -rw-r--r-- | fs/nfs/super.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 0a42e8f4adc..4100630c9a5 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -39,7 +39,6 @@  #include <linux/nfs_mount.h>  #include <linux/nfs4_mount.h>  #include <linux/lockd/bind.h> -#include <linux/smp_lock.h>  #include <linux/seq_file.h>  #include <linux/mount.h>  #include <linux/mnt_namespace.h> @@ -67,6 +66,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, @@ -1064,12 +1069,10 @@ static int nfs_parse_mount_options(char *raw,  			mnt->flags |= NFS_MOUNT_VER3;  			mnt->version = 3;  			break; -#ifdef CONFIG_NFS_V4  		case Opt_v4:  			mnt->flags &= ~NFS_MOUNT_VER3;  			mnt->version = 4;  			break; -#endif  		case Opt_udp:  			mnt->flags &= ~NFS_MOUNT_TCP;  			mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; @@ -1281,12 +1284,10 @@ static int nfs_parse_mount_options(char *raw,  				mnt->flags |= NFS_MOUNT_VER3;  				mnt->version = 3;  				break; -#ifdef CONFIG_NFS_V4  			case NFS4_VERSION:  				mnt->flags &= ~NFS_MOUNT_VER3;  				mnt->version = 4;  				break; -#endif  			default:  				goto out_invalid_value;  			} @@ -2277,7 +2278,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;  |