diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-10-01 08:05:22 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-10-01 12:28:01 -0400 |
commit | 34549ab09e62db9703811c6ed4715f2ffa1fd7fb (patch) | |
tree | e2fb1f1da30e316013984958efcfb2be6aadfaed /fs/nfsd/nfs4callback.c | |
parent | 24bab491220faa446d945624086d838af41d616c (diff) |
nfsd: eliminate "to_delegation" define
We now have cb_to_delegation and to_delegation, which do the same thing
and are defined separately in different .c files. Move the
cb_to_delegation definition into a header file and eliminate the
redundant to_delegation definition.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 4fe4be1ee82e..ed2b1151b171 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -49,9 +49,6 @@ static void nfsd4_mark_cb_fault(struct nfs4_client *, int reason); | |||
49 | 49 | ||
50 | /* Index of predefined Linux callback client operations */ | 50 | /* Index of predefined Linux callback client operations */ |
51 | 51 | ||
52 | #define to_delegation(cb) \ | ||
53 | container_of(cb, struct nfs4_delegation, dl_recall) | ||
54 | |||
55 | struct nfs4_cb_compound_hdr { | 52 | struct nfs4_cb_compound_hdr { |
56 | /* args */ | 53 | /* args */ |
57 | u32 ident; /* minorversion 0 only */ | 54 | u32 ident; /* minorversion 0 only */ |
@@ -491,7 +488,7 @@ static void nfs4_xdr_enc_cb_null(struct rpc_rqst *req, struct xdr_stream *xdr, | |||
491 | static void nfs4_xdr_enc_cb_recall(struct rpc_rqst *req, struct xdr_stream *xdr, | 488 | static void nfs4_xdr_enc_cb_recall(struct rpc_rqst *req, struct xdr_stream *xdr, |
492 | const struct nfsd4_callback *cb) | 489 | const struct nfsd4_callback *cb) |
493 | { | 490 | { |
494 | const struct nfs4_delegation *dp = to_delegation(cb); | 491 | const struct nfs4_delegation *dp = cb_to_delegation(cb); |
495 | struct nfs4_cb_compound_hdr hdr = { | 492 | struct nfs4_cb_compound_hdr hdr = { |
496 | .ident = cb->cb_clp->cl_cb_ident, | 493 | .ident = cb->cb_clp->cl_cb_ident, |
497 | .minorversion = cb->cb_minorversion, | 494 | .minorversion = cb->cb_minorversion, |