aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4callback.c5
-rw-r--r--fs/nfsd/nfs4state.c3
-rw-r--r--fs/nfsd/state.h3
3 files changed, 4 insertions, 7 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
55struct nfs4_cb_compound_hdr { 52struct 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,
491static void nfs4_xdr_enc_cb_recall(struct rpc_rqst *req, struct xdr_stream *xdr, 488static 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,
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 551f32d7f5c7..5c0cac173068 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3360,9 +3360,6 @@ nfs4_share_conflict(struct svc_fh *current_fh, unsigned int deny_type)
3360 return ret; 3360 return ret;
3361} 3361}
3362 3362
3363#define cb_to_delegation(cb) \
3364 container_of(cb, struct nfs4_delegation, dl_recall)
3365
3366static void nfsd4_cb_recall_prepare(struct nfsd4_callback *cb) 3363static void nfsd4_cb_recall_prepare(struct nfsd4_callback *cb)
3367{ 3364{
3368 struct nfs4_delegation *dp = cb_to_delegation(cb); 3365 struct nfs4_delegation *dp = cb_to_delegation(cb);
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index bf52dc7b15e7..0a47c6a6b301 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -132,6 +132,9 @@ struct nfs4_delegation {
132 struct nfsd4_callback dl_recall; 132 struct nfsd4_callback dl_recall;
133}; 133};
134 134
135#define cb_to_delegation(cb) \
136 container_of(cb, struct nfs4_delegation, dl_recall)
137
135/* client delegation callback info */ 138/* client delegation callback info */
136struct nfs4_cb_conn { 139struct nfs4_cb_conn {
137 /* SETCLIENTID info */ 140 /* SETCLIENTID info */