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/state.h | |
parent | 24bab491220faa446d945624086d838af41d616c (diff) | |
download | op-kernel-dev-34549ab09e62db9703811c6ed4715f2ffa1fd7fb.zip op-kernel-dev-34549ab09e62db9703811c6ed4715f2ffa1fd7fb.tar.gz |
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/state.h')
-rw-r--r-- | fs/nfsd/state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index bf52dc7..0a47c6a 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -132,6 +132,9 @@ struct nfs4_delegation { struct nfsd4_callback dl_recall; }; +#define cb_to_delegation(cb) \ + container_of(cb, struct nfs4_delegation, dl_recall) + /* client delegation callback info */ struct nfs4_cb_conn { /* SETCLIENTID info */ |