Skip to content

Commit

Permalink
NFS: Save padding bytes in struct nfs4_setclientid
Browse files Browse the repository at this point in the history
Peter Staubach suggested reducing NFS4_SETCLIENTID_NAMELEN by one byte so
as to avoid 7 bytes of unnecessary padding.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 8, 2008
1 parent 63ffc23 commit 19d771f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/nfs_xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ struct nfs4_rename_res {
struct nfs_fattr * new_fattr;
};

#define NFS4_SETCLIENTID_NAMELEN (128)
#define NFS4_SETCLIENTID_NAMELEN (127)
struct nfs4_setclientid {
const nfs4_verifier * sc_verifier;
unsigned int sc_name_len;
Expand Down

0 comments on commit 19d771f

Please sign in to comment.