diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-06-24 21:06:41 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-08 23:14:24 +0200 |
commit | 7fb84306f55d6cc32ea894d47cbb2faa18c8f45b (patch) | |
tree | f5acece1aa801757384012554f350e824696d857 /fs/nfsd/xdr4.h | |
parent | nfsd: let nfsd_symlink assume null-terminated data (diff) | |
download | linux-7fb84306f55d6cc32ea894d47cbb2faa18c8f45b.tar.xz linux-7fb84306f55d6cc32ea894d47cbb2faa18c8f45b.zip |
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.h | 8 |
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 { u32 cr_type; /* request */ union { /* request */ struct { - u32 namelen; - char *name; + u32 datalen; + char *data; } link; /* NF4LNK */ struct { u32 specdata1; @@ -121,8 +121,8 @@ struct nfsd4_create { struct nfs4_acl *cr_acl; struct xdr_netobj cr_label; }; -#define cr_linklen u.link.namelen -#define cr_linkname u.link.name +#define cr_datalen u.link.datalen +#define cr_data u.link.data #define cr_specdata1 u.dev.specdata1 #define cr_specdata2 u.dev.specdata2 |