Whamcloud - gitweb
LU-6142 lustre: change super/file/inode operations to const 94/39394/5
authorMr NeilBrown <neilb@suse.de>
Thu, 16 Jul 2020 03:49:36 +0000 (13:49 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:42:07 +0000 (21:42 +0000)
commit140b9e6d736a8c11d660094fc11ee61a89264b13
tree42ae349784e04d65e4be14101c33b3790b967134
parent3ae81448da0009293063547f1f95e116f7102418
LU-6142 lustre: change super/file/inode operations to const

All 'struct file_operations', 'struct inode_operations', 'struct
export_operations' and 'struct super_operations' are changed to
'const'.  This potenetially allows them to be placed in read-only
memory, and ensure they are never changed.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I8b236f0248eca11f91f11da02fe18be3f6d2e17c
Reviewed-on: https://review.whamcloud.com/39394
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
14 files changed:
lnet/klnds/gnilnd/gnilnd_proc.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_nfs.c
lustre/llite/super25.c
lustre/llite/symlink.c
lustre/lod/lod_pool.c
lustre/lov/lov_pool.c
lustre/obdclass/class_obd.c
lustre/obdclass/lu_ref.c
lustre/obdclass/obd_mount_server.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/quota/lproc_quota.c
lustre/quota/lquota_internal.h