Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5680d48be88d12cd987e5579a6072a4ca34ca6ea
Commit:     5680d48be88d12cd987e5579a6072a4ca34ca6ea
Parent:     9eaa67c6a5b77f248c4703d81c4a6c6434e35385
Author:     Chuck Lever <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 1 12:12:24 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 23:40:44 2007 -0400

    NFS: Clean-up: Define macros for maximum host and export path name lengths
    
    Signed-off-by: Chuck Lever <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/nfs/super.c            |    4 ++--
 include/linux/nfs_mount.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 14c7923..e7d1970 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;
diff --git a/include/linux/nfs_mount.h b/include/linux/nfs_mount.h
index cc8b9c5..0b82a17 100644
--- a/include/linux/nfs_mount.h
+++ b/include/linux/nfs_mount.h
@@ -37,7 +37,7 @@ struct nfs_mount_data {
        int             acdirmin;               /* 1 */
        int             acdirmax;               /* 1 */
        struct sockaddr_in addr;                /* 1 */
-       char            hostname[256];          /* 1 */
+       char            hostname[NFS_MAXNAMLEN + 1];            /* 1 */
        int             namlen;                 /* 2 */
        unsigned int    bsize;                  /* 3 */
        struct nfs3_fh  root;                   /* 4 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to