summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-08-28 22:36:55 +0200
committerJ. Bruce Fields <bfields@redhat.com>2016-11-14 15:24:19 -0500
commit7ba630f54ca6404351cebea03fbd3c95760b9b02 (patch)
tree7550c1cfbc5ef5cf19169cde001b132669dac704 /fs/nfsd
parent88382036674770173128417e4c09e9e549f82d54 (diff)
downloadlinux-7ba630f54ca6404351cebea03fbd3c95760b9b02.tar.gz
linux-7ba630f54ca6404351cebea03fbd3c95760b9b02.tar.bz2
linux-7ba630f54ca6404351cebea03fbd3c95760b9b02.zip
nfsd: constify reply_cache_stats_operations structure
reply_cache_stats_operations, of type struct file_operations, 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: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 36b2af931e06..be13063bcd66 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -217,7 +217,7 @@ static const struct file_operations pool_stats_operations = {
.release = nfsd_pool_stats_release,
};
-static struct file_operations reply_cache_stats_operations = {
+static const struct file_operations reply_cache_stats_operations = {
.open = nfsd_reply_cache_stats_open,
.read = seq_read,
.llseek = seq_lseek,