diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-22 10:22:10 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-11-23 22:15:30 +0300 |
commit | 7c582e4faaf2593116068fc9ec8f5d81f720c02b (patch) | |
tree | 82722d73508bf0da5743ffb76fea4f850e7f28e8 /fs/nfsd/netns.h | |
parent | 6f18dc893981e4daab29221d6a9771f3ce2dd8c5 (diff) | |
download | linux-7c582e4faaf2593116068fc9ec8f5d81f720c02b.tar.xz |
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 { struct file *rec_file; bool in_grace; - struct nfsd4_client_tracking_ops *client_tracking_ops; + const struct nfsd4_client_tracking_ops *client_tracking_ops; time_t nfsd4_lease; time_t nfsd4_grace; |