aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-06-24 15:06:41 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-08 17:14:24 -0400
commit7fb84306f55d6cc32ea894d47cbb2faa18c8f45b (patch)
treef5acece1aa801757384012554f350e824696d857 /fs/nfsd/xdr4.h
parent52ee04330f585d1b5bc40442f07df07248fa3aee (diff)
nfsd4: rename cr_linkname->cr_data
The name of a link is currently stored in cr_name and cr_namelen, and the content in cr_linkname and cr_linklen. That's confusing. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index 18cbb6d9c8a9..b8bf63a21e3b 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -107,8 +107,8 @@ struct nfsd4_create {
107 u32 cr_type; /* request */ 107 u32 cr_type; /* request */
108 union { /* request */ 108 union { /* request */
109 struct { 109 struct {
110 u32 namelen; 110 u32 datalen;
111 char *name; 111 char *data;
112 } link; /* NF4LNK */ 112 } link; /* NF4LNK */
113 struct { 113 struct {
114 u32 specdata1; 114 u32 specdata1;
@@ -121,8 +121,8 @@ struct nfsd4_create {
121 struct nfs4_acl *cr_acl; 121 struct nfs4_acl *cr_acl;
122 struct xdr_netobj cr_label; 122 struct xdr_netobj cr_label;
123}; 123};
124#define cr_linklen u.link.namelen 124#define cr_datalen u.link.datalen
125#define cr_linkname u.link.name 125#define cr_data u.link.data
126#define cr_specdata1 u.dev.specdata1 126#define cr_specdata1 u.dev.specdata1
127#define cr_specdata2 u.dev.specdata2 127#define cr_specdata2 u.dev.specdata2
128 128