Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294527
b: refs/heads/master
c: cb17e55
h: refs/heads/master
i:
  294525: 6d14c4f
  294523: 2a8cd06
  294519: 5c5640d
  294511: da1523c
  294495: 561aa9e
  294463: 19990dd
  294399: 54cbdc9
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 6, 2012
1 parent 085f2d0 commit b468bf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0b496d2fc08cc51000fcdd9739235d1cab890cd
refs/heads/master: cb17e556f6202c200d38a2e0c05a5bd29060389f
14 changes: 9 additions & 5 deletions trunk/fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,14 @@ static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes)
return p;
}

static void encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len)
{
__be32 *p;

p = xdr_reserve_space(xdr, len);
xdr_encode_opaque_fixed(p, buf, len);
}

static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str)
{
__be32 *p;
Expand Down Expand Up @@ -922,11 +930,7 @@ static void encode_nops(struct compound_hdr *hdr)

static void encode_nfs4_verifier(struct xdr_stream *xdr, const nfs4_verifier *verf)
{
__be32 *p;

p = xdr_reserve_space(xdr, NFS4_VERIFIER_SIZE);
BUG_ON(p == NULL);
xdr_encode_opaque_fixed(p, verf->data, NFS4_VERIFIER_SIZE);
encode_opaque_fixed(xdr, verf->data, NFS4_VERIFIER_SIZE);
}

static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const struct nfs_server *server)
Expand Down

0 comments on commit b468bf9

Please sign in to comment.