Skip to content

Commit

Permalink
nfsd: constify reply_cache_stats_operations structure
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
JuliaLawall authored and J. Bruce Fields committed Nov 14, 2016
1 parent 8838203 commit 7ba630f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7ba630f

Please sign in to comment.