diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-22 02:22:10 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-11-23 14:15:30 -0500 |
commit | 7c582e4faaf2593116068fc9ec8f5d81f720c02b (patch) | |
tree | 82722d73508bf0da5743ffb76fea4f850e7f28e8 /fs/nfsd/netns.h | |
parent | 6f18dc893981e4daab29221d6a9771f3ce2dd8c5 (diff) |
nfsd: recover: constify nfsd4_client_tracking_ops structures
The nfsd4_client_tracking_ops structures are never modified, so declare
them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r-- | fs/nfsd/netns.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index d8b16c2568f3..5fbf3bbd00d0 100644 --- a/fs/nfsd/netns.h +++ b/fs/nfsd/netns.h | |||
@@ -92,7 +92,7 @@ struct nfsd_net { | |||
92 | 92 | ||
93 | struct file *rec_file; | 93 | struct file *rec_file; |
94 | bool in_grace; | 94 | bool in_grace; |
95 | struct nfsd4_client_tracking_ops *client_tracking_ops; | 95 | const struct nfsd4_client_tracking_ops *client_tracking_ops; |
96 | 96 | ||
97 | time_t nfsd4_lease; | 97 | time_t nfsd4_lease; |
98 | time_t nfsd4_grace; | 98 | time_t nfsd4_grace; |