summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-21 16:57:39 -0500
committerJ. Bruce Fields <bfields@redhat.com>2015-11-23 14:15:31 -0500
commitc4cb897462c93ba09543d912344c29a26c92eb31 (patch)
treecb2249932f2c9b5b88a2320f0bd69a112b3c6b6e /fs/nfsd/state.h
parent7c582e4faaf2593116068fc9ec8f5d81f720c02b (diff)
nfsd: constify nfsd4_callback_ops structure
The nfsd4_callback_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 77fdf4de91ba..5e2ba19fe3cb 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -65,7 +65,7 @@ struct nfsd4_callback {
65 struct nfs4_client *cb_clp; 65 struct nfs4_client *cb_clp;
66 u32 cb_minorversion; 66 u32 cb_minorversion;
67 struct rpc_message cb_msg; 67 struct rpc_message cb_msg;
68 struct nfsd4_callback_ops *cb_ops; 68 const struct nfsd4_callback_ops *cb_ops;
69 struct work_struct cb_work; 69 struct work_struct cb_work;
70 int cb_seq_status; 70 int cb_seq_status;
71 int cb_status; 71 int cb_status;
@@ -599,7 +599,7 @@ extern void nfsd4_probe_callback(struct nfs4_client *clp);
599extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); 599extern void nfsd4_probe_callback_sync(struct nfs4_client *clp);
600extern void nfsd4_change_callback(struct nfs4_client *clp, struct nfs4_cb_conn *); 600extern void nfsd4_change_callback(struct nfs4_client *clp, struct nfs4_cb_conn *);
601extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp, 601extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp,
602 struct nfsd4_callback_ops *ops, enum nfsd4_cb_op op); 602 const struct nfsd4_callback_ops *ops, enum nfsd4_cb_op op);
603extern void nfsd4_run_cb(struct nfsd4_callback *cb); 603extern void nfsd4_run_cb(struct nfsd4_callback *cb);
604extern int nfsd4_create_callback_queue(void); 604extern int nfsd4_create_callback_queue(void);
605extern void nfsd4_destroy_callback_queue(void); 605extern void nfsd4_destroy_callback_queue(void);