Whamcloud - gitweb
LU-6142 lustre: change super/file/inode operations to const
authorMr NeilBrown <neilb@suse.de>
Tue, 11 May 2021 03:55:32 +0000 (20:55 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:46:28 +0000 (01:46 +0000)
commitcf74b3413a24f3b2d6947b096464a7b6d5ee017f
tree4517a2d1446fa27cfef4ac0c045859a305dfa4f1
parentccb38889cad2f6371eb22514c993b3edcbe36771
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.

Lustre-change: https://review.whamcloud.com/39394
Lustre-commit: 140b9e6d736a8c11d660094fc11ee61a89264b13

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I8b236f0248eca11f91f11da02fe18be3f6d2e17c
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43639
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@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