diff options
author | Eric Biggers <ebiggers@google.com> | 2018-07-17 11:01:25 -0700 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-08-09 16:11:21 -0400 |
commit | c2cdc2ab24873289db8588a0a7ccec508d7ad075 (patch) | |
tree | 822dff659fc814b83853dda851b6224644ebfc2e /fs/nfsd | |
parent | 5ed96bc5451bb736a0b7d5d72a0f444316dc6559 (diff) | |
download | linux-c2cdc2ab24873289db8588a0a7ccec508d7ad075.tar.bz2 |
nfsd: constify write_op[]
write_op[] is never modified, so make it 'const'.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index ec8a214a5089..7fb9f7c667b1 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -73,7 +73,7 @@ static ssize_t write_recoverydir(struct file *file, char *buf, size_t size); static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size); #endif -static ssize_t (*write_op[])(struct file *, char *, size_t) = { +static ssize_t (*const write_op[])(struct file *, char *, size_t) = { [NFSD_Fh] = write_filehandle, [NFSD_FO_UnlockIP] = write_unlock_ip, [NFSD_FO_UnlockFS] = write_unlock_fs, |