]> err.no Git - linux-2.6/commitdiff
NFSD: Path name length signage in nfsd request argument structures
authorChuck Lever <chuck.lever@oracle.com>
Thu, 1 Nov 2007 20:57:25 +0000 (16:57 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:03 +0000 (16:42 -0500)
Clean up: For consistency, store the length of path name strings in nfsd
argument structures as unsigned integers.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-By: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
include/linux/nfsd/xdr.h
include/linux/nfsd/xdr3.h

index 49ddf7903b92ab964346a80b70b764cdd1b23f91..a0132ef58f2128c9fe25f1412f9959355db92d58 100644 (file)
@@ -73,7 +73,7 @@ struct nfsd_symlinkargs {
        char *                  fname;
        unsigned int            flen;
        char *                  tname;
-       int                     tlen;
+       unsigned int            tlen;
        struct iattr            attrs;
 };
 
index 6fdb958043f09c69699125f59fa1efad1c9887f3..421eddd65a25a7968b8abe94d4f041e4f9aa0319 100644 (file)
@@ -89,7 +89,7 @@ struct nfsd3_symlinkargs {
        char *                  fname;
        unsigned int            flen;
        char *                  tname;
-       int                     tlen;
+       unsigned int            tlen;
        struct iattr            attrs;
 };