NFS: Add nfs_alloc_parsed_mount_data
authorChuck Lever <chuck.lever@oracle.com>
Wed, 23 Sep 2009 18:36:38 +0000 (14:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Sep 2009 18:36:38 +0000 (14:36 -0400)
commit9423a08ad5773d0a7612d434700561dc8346b6d6
tree3d43b5d0bd90526f64d5f3950f25e539fa14ed63
parent61d0a8e6a8049cea246ee7ec19b042d4ff1f6ef6
NFS: Add nfs_alloc_parsed_mount_data

Allocating nfs_parsed_mount_data and setting up the defaults is nearly
the same for both nfs and nfs4 mounts.

Both paths seem to use nfs_validate_transport_protocol(), so setting a
default value for nfs_server.protocol ought to be unnecessary.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c