diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-07-01 18:12:24 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-11 05:40:44 +0200 |
commit | 5680d48be88d12cd987e5579a6072a4ca34ca6ea (patch) | |
tree | 030cb42a88efbd5ea35296d9d4d520e1ec63f618 /fs/nfs | |
parent | NFS: Clean-up: use correct type when converting NFS blocks to local blocks (diff) | |
download | linux-5680d48be88d12cd987e5579a6072a4ca34ca6ea.tar.xz linux-5680d48be88d12cd987e5579a6072a4ca34ca6ea.zip |
NFS: Clean-up: Define macros for maximum host and export path name lengths
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 14c7923697d2..e7d197085834 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -867,12 +867,12 @@ static int nfs4_get_sb(struct file_system_type *fs_type, } } - p = nfs_copy_user_string(NULL, &data->hostname, 256); + p = nfs_copy_user_string(NULL, &data->hostname, NFS4_MAXNAMLEN); if (IS_ERR(p)) goto out_err; hostname = p; - p = nfs_copy_user_string(NULL, &data->mnt_path, 1024); + p = nfs_copy_user_string(NULL, &data->mnt_path, NFS4_MAXPATHLEN); if (IS_ERR(p)) goto out_err; mntpath = p; |