nfsd: remove nfsd4_callback.cb_op
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Sep 2014 10:19:16 +0000 (12:19 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Sep 2014 20:29:26 +0000 (16:29 -0400)
commit2faf3b43507556bd80e5274270db1fce1408f4ff
tree87f1916a7363c2462caf8a7f7449eb2cd1d9eaef
parent341b51df1fef0a39d792fb1c7d7856cf142627ab
nfsd: remove nfsd4_callback.cb_op

We can always get at the private data by using container_of, no need for
a void pointer.  Also introduce a little to_delegation helper to avoid
opencoding the container_of everywhere.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c
fs/nfsd/state.h