Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294515
b: refs/heads/master
c: bb4dae5
h: refs/heads/master
i:
  294513: dda3f5f
  294511: da1523c
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Mar 2, 2012
1 parent 73537f7 commit 212be12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 20d27e929fb4790a339a4ddcc9a27f14db06055b
refs/heads/master: bb4dae5e5b5a92f0ffbcc6ac10c5e8afcd87934d
7 changes: 4 additions & 3 deletions trunk/fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,13 +1637,14 @@ static void encode_rename(struct xdr_stream *xdr, const struct qstr *oldname, co
hdr->replen += decode_rename_maxsz;
}

static void encode_renew(struct xdr_stream *xdr, const struct nfs_client *client_stateid, struct compound_hdr *hdr)
static void encode_renew(struct xdr_stream *xdr, clientid4 clid,
struct compound_hdr *hdr)
{
__be32 *p;

p = reserve_space(xdr, 12);
*p++ = cpu_to_be32(OP_RENEW);
xdr_encode_hyper(p, client_stateid->cl_clientid);
xdr_encode_hyper(p, clid);
hdr->nops++;
hdr->replen += decode_renew_maxsz;
}
Expand Down Expand Up @@ -2692,7 +2693,7 @@ static void nfs4_xdr_enc_renew(struct rpc_rqst *req, struct xdr_stream *xdr,
};

encode_compound_hdr(xdr, req, &hdr);
encode_renew(xdr, clp, &hdr);
encode_renew(xdr, clp->cl_clientid, &hdr);
encode_nops(&hdr);
}

Expand Down

0 comments on commit 212be12

Please sign in to comment.