summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-10-01 08:05:22 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-10-01 12:28:01 -0400
commit34549ab09e62db9703811c6ed4715f2ffa1fd7fb (patch)
treee2fb1f1da30e316013984958efcfb2be6aadfaed /fs/nfsd/state.h
parent24bab491220faa446d945624086d838af41d616c (diff)
downloadlinux-34549ab09e62db9703811c6ed4715f2ffa1fd7fb.tar.gz
linux-34549ab09e62db9703811c6ed4715f2ffa1fd7fb.tar.bz2
linux-34549ab09e62db9703811c6ed4715f2ffa1fd7fb.zip
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.h3
1 files changed, 3 insertions, 0 deletions
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 {
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 */