summaryrefslogtreecommitdiff
path: root/fs/nfsd/current_stateid.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-08 21:03:15 +0300
committerChristoph Hellwig <hch@lst.de>2017-05-15 18:42:27 +0300
commitb60e985980948f65d9833e5be7adccb6df321368 (patch)
treedafe5273c1c3add7717d1ff0ffbc1bfb4d6765ed /fs/nfsd/current_stateid.h
parent35f297e5370bd511a171f7de0c5a31ee661f2e7e (diff)
downloadlinux-b60e985980948f65d9833e5be7adccb6df321368.tar.xz
nfsd4: properly type op_set_currentstateid callbacks
Given the args union in struct nfsd4_op a name, and pass it to the op_set_currentstateid callbacks instead of using unsafe function pointer casts. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfsd/current_stateid.h')
-rw-r--r--fs/nfsd/current_stateid.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/nfsd/current_stateid.h b/fs/nfsd/current_stateid.h
index 4123551208d8..3c80a7b5302d 100644
--- a/fs/nfsd/current_stateid.h
+++ b/fs/nfsd/current_stateid.h
@@ -8,10 +8,14 @@ extern void clear_current_stateid(struct nfsd4_compound_state *cstate);
/*
* functions to set current state id
*/
-extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *);
-extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, struct nfsd4_open *);
-extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, struct nfsd4_lock *);
-extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *);
+extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *,
+ union nfsd4_op_u *);
+extern void nfsd4_set_openstateid(struct nfsd4_compound_state *,
+ union nfsd4_op_u *);
+extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *,
+ union nfsd4_op_u *);
+extern void nfsd4_set_closestateid(struct nfsd4_compound_state *,
+ union nfsd4_op_u *);
/*
* functions to consume current state id