]> git.ipfire.org Git - thirdparty/linux.git/commit
dlm: Constify struct configfs_item_operations and configfs_group_operations
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 20 Jan 2026 15:35:08 +0000 (10:35 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 20 Jan 2026 18:07:31 +0000 (12:07 -0600)
commit596ce53d647ca7c8d6408a4148dc44ead39e8474
treeab0b800bf077fda9aded4dffb6ea1e192790d960
parent6155b409761f50c7f3353739610bb37e02422116
dlm: Constify struct configfs_item_operations and configfs_group_operations

'struct configfs_item_operations' and 'configfs_group_operations' are not
modified in this driver.

Constifying these structures moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
  29436   12952     384   42772    a714 fs/dlm/config.o

After:
=====
   text    data     bss     dec     hex filename
  30076   12312     384   42772    a714 fs/dlm/config.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/config.c