Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Biggers and committed by
J. Bruce Fields
c2cdc2ab 5ed96bc5

+1 -1
+1 -1
fs/nfsd/nfsctl.c
··· 73 73 static ssize_t write_v4_end_grace(struct file *file, char *buf, size_t size); 74 74 #endif 75 75 76 - static ssize_t (*write_op[])(struct file *, char *, size_t) = { 76 + static ssize_t (*const write_op[])(struct file *, char *, size_t) = { 77 77 [NFSD_Fh] = write_filehandle, 78 78 [NFSD_FO_UnlockIP] = write_unlock_ip, 79 79 [NFSD_FO_UnlockFS] = write_unlock_fs,