nfsd: constify write_op[]
authorEric Biggers <[email protected]>
Tue, 17 Jul 2018 18:01:25 +0000 (11:01 -0700)
committerJ. Bruce Fields <[email protected]>
Thu, 9 Aug 2018 20:11:21 +0000 (16:11 -0400)
write_op[] is never modified, so make it 'const'.

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
fs/nfsd/nfsctl.c

index ec8a214a5089c9c7f26eaef4ed647afc731fa01d..7fb9f7c667b11077adc4afacb20d5c75319c5841 100644 (file)
@@ -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,