From: J. Bruce Fields Date: Tue, 17 Jul 2007 11:04:35 +0000 (-0700) Subject: knfsd: nfsd4: fix NFSv4 filehandle size units confusion X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=33a1060ae7dc671a0208b341bd454009625bb5a6;p=openwrt%2Fstaging%2Fblogic.git knfsd: nfsd4: fix NFSv4 filehandle size units confusion NFS4_FHSIZE is measured in bytes, not 4-byte words, so much more space than necessary is being allocated for struct nfs4_cb_recall. I should have wondered why this structure was so much larger than it needed to be! Signed-off-by: "J. Bruce Fields" Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index ab5c236bd9a7..732de9cad4a8 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h @@ -67,7 +67,7 @@ struct nfs4_cb_recall { int cbr_trunc; stateid_t cbr_stateid; u32 cbr_fhlen; - u32 cbr_fhval[NFS4_FHSIZE]; + char cbr_fhval[NFS4_FHSIZE]; struct nfs4_delegation *cbr_dp; };