aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 3bf5593741ee..36a7cda03445 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -677,12 +677,12 @@ static void nfs41_call_sync_done(struct rpc_task *task, void *calldata)
677 nfs41_sequence_done(task, data->seq_res); 677 nfs41_sequence_done(task, data->seq_res);
678} 678}
679 679
680struct rpc_call_ops nfs41_call_sync_ops = { 680static const struct rpc_call_ops nfs41_call_sync_ops = {
681 .rpc_call_prepare = nfs41_call_sync_prepare, 681 .rpc_call_prepare = nfs41_call_sync_prepare,
682 .rpc_call_done = nfs41_call_sync_done, 682 .rpc_call_done = nfs41_call_sync_done,
683}; 683};
684 684
685struct rpc_call_ops nfs41_call_priv_sync_ops = { 685static const struct rpc_call_ops nfs41_call_priv_sync_ops = {
686 .rpc_call_prepare = nfs41_call_priv_sync_prepare, 686 .rpc_call_prepare = nfs41_call_priv_sync_prepare,
687 .rpc_call_done = nfs41_call_sync_done, 687 .rpc_call_done = nfs41_call_sync_done,
688}; 688};
@@ -4770,7 +4770,7 @@ static void nfs4_release_lockowner_release(void *calldata)
4770 kfree(calldata); 4770 kfree(calldata);
4771} 4771}
4772 4772
4773const struct rpc_call_ops nfs4_release_lockowner_ops = { 4773static const struct rpc_call_ops nfs4_release_lockowner_ops = {
4774 .rpc_release = nfs4_release_lockowner_release, 4774 .rpc_release = nfs4_release_lockowner_release,
4775}; 4775};
4776 4776
@@ -4910,7 +4910,8 @@ static int _nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, struct
4910 return status; 4910 return status;
4911} 4911}
4912 4912
4913int nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, struct nfs4_secinfo_flavors *flavors) 4913static int nfs4_proc_secinfo(struct inode *dir, const struct qstr *name,
4914 struct nfs4_secinfo_flavors *flavors)
4914{ 4915{
4915 struct nfs4_exception exception = { }; 4916 struct nfs4_exception exception = { };
4916 int err; 4917 int err;
@@ -5096,7 +5097,7 @@ static void nfs4_get_lease_time_done(struct rpc_task *task, void *calldata)
5096 dprintk("<-- %s\n", __func__); 5097 dprintk("<-- %s\n", __func__);
5097} 5098}
5098 5099
5099struct rpc_call_ops nfs4_get_lease_time_ops = { 5100static const struct rpc_call_ops nfs4_get_lease_time_ops = {
5100 .rpc_call_prepare = nfs4_get_lease_time_prepare, 5101 .rpc_call_prepare = nfs4_get_lease_time_prepare,
5101 .rpc_call_done = nfs4_get_lease_time_done, 5102 .rpc_call_done = nfs4_get_lease_time_done,
5102}; 5103};
@@ -6319,7 +6320,7 @@ static bool nfs4_match_stateid(const nfs4_stateid *s1,
6319} 6320}
6320 6321
6321 6322
6322struct nfs4_state_recovery_ops nfs40_reboot_recovery_ops = { 6323static const struct nfs4_state_recovery_ops nfs40_reboot_recovery_ops = {
6323 .owner_flag_bit = NFS_OWNER_RECLAIM_REBOOT, 6324 .owner_flag_bit = NFS_OWNER_RECLAIM_REBOOT,
6324 .state_flag_bit = NFS_STATE_RECLAIM_REBOOT, 6325 .state_flag_bit = NFS_STATE_RECLAIM_REBOOT,
6325 .recover_open = nfs4_open_reclaim, 6326 .recover_open = nfs4_open_reclaim,
@@ -6329,7 +6330,7 @@ struct nfs4_state_recovery_ops nfs40_reboot_recovery_ops = {
6329}; 6330};
6330 6331
6331#if defined(CONFIG_NFS_V4_1) 6332#if defined(CONFIG_NFS_V4_1)
6332struct nfs4_state_recovery_ops nfs41_reboot_recovery_ops = { 6333static const struct nfs4_state_recovery_ops nfs41_reboot_recovery_ops = {
6333 .owner_flag_bit = NFS_OWNER_RECLAIM_REBOOT, 6334 .owner_flag_bit = NFS_OWNER_RECLAIM_REBOOT,
6334 .state_flag_bit = NFS_STATE_RECLAIM_REBOOT, 6335 .state_flag_bit = NFS_STATE_RECLAIM_REBOOT,
6335 .recover_open = nfs4_open_reclaim, 6336 .recover_open = nfs4_open_reclaim,
@@ -6340,7 +6341,7 @@ struct nfs4_state_recovery_ops nfs41_reboot_recovery_ops = {
6340}; 6341};
6341#endif /* CONFIG_NFS_V4_1 */ 6342#endif /* CONFIG_NFS_V4_1 */
6342 6343
6343struct nfs4_state_recovery_ops nfs40_nograce_recovery_ops = { 6344static const struct nfs4_state_recovery_ops nfs40_nograce_recovery_ops = {
6344 .owner_flag_bit = NFS_OWNER_RECLAIM_NOGRACE, 6345 .owner_flag_bit = NFS_OWNER_RECLAIM_NOGRACE,
6345 .state_flag_bit = NFS_STATE_RECLAIM_NOGRACE, 6346 .state_flag_bit = NFS_STATE_RECLAIM_NOGRACE,
6346 .recover_open = nfs4_open_expired, 6347 .recover_open = nfs4_open_expired,
@@ -6350,7 +6351,7 @@ struct nfs4_state_recovery_ops nfs40_nograce_recovery_ops = {
6350}; 6351};
6351 6352
6352#if defined(CONFIG_NFS_V4_1) 6353#if defined(CONFIG_NFS_V4_1)
6353struct nfs4_state_recovery_ops nfs41_nograce_recovery_ops = { 6354static const struct nfs4_state_recovery_ops nfs41_nograce_recovery_ops = {
6354 .owner_flag_bit = NFS_OWNER_RECLAIM_NOGRACE, 6355 .owner_flag_bit = NFS_OWNER_RECLAIM_NOGRACE,
6355 .state_flag_bit = NFS_STATE_RECLAIM_NOGRACE, 6356 .state_flag_bit = NFS_STATE_RECLAIM_NOGRACE,
6356 .recover_open = nfs41_open_expired, 6357 .recover_open = nfs41_open_expired,
@@ -6360,14 +6361,14 @@ struct nfs4_state_recovery_ops nfs41_nograce_recovery_ops = {
6360}; 6361};
6361#endif /* CONFIG_NFS_V4_1 */ 6362#endif /* CONFIG_NFS_V4_1 */
6362 6363
6363struct nfs4_state_maintenance_ops nfs40_state_renewal_ops = { 6364static const struct nfs4_state_maintenance_ops nfs40_state_renewal_ops = {
6364 .sched_state_renewal = nfs4_proc_async_renew, 6365 .sched_state_renewal = nfs4_proc_async_renew,
6365 .get_state_renewal_cred_locked = nfs4_get_renew_cred_locked, 6366 .get_state_renewal_cred_locked = nfs4_get_renew_cred_locked,
6366 .renew_lease = nfs4_proc_renew, 6367 .renew_lease = nfs4_proc_renew,
6367}; 6368};
6368 6369
6369#if defined(CONFIG_NFS_V4_1) 6370#if defined(CONFIG_NFS_V4_1)
6370struct nfs4_state_maintenance_ops nfs41_state_renewal_ops = { 6371static const struct nfs4_state_maintenance_ops nfs41_state_renewal_ops = {
6371 .sched_state_renewal = nfs41_proc_async_sequence, 6372 .sched_state_renewal = nfs41_proc_async_sequence,
6372 .get_state_renewal_cred_locked = nfs4_get_machine_cred_locked, 6373 .get_state_renewal_cred_locked = nfs4_get_machine_cred_locked,
6373 .renew_lease = nfs4_proc_sequence, 6374 .renew_lease = nfs4_proc_sequence,