deepin-kernel/fs/notify
Alexey Dobriyan 229b5820b9 treewide: mark stuff as __ro_after_init
mainline inclusion
from mainline-v6.7-rc1
category: security

__read_mostly predates __ro_after_init. Many variables which are marked
__read_mostly should have been __ro_after_init from day 1.

Also, mark some stuff as "const" and "__init" while I'm at it.

[akpm@linux-foundation.org: revert sysctl_nr_open_min, sysctl_nr_open_max changes due to arm warning]
[akpm@linux-foundation.org: coding-style cleanups]
Link: https://lkml.kernel.org/r/4f6bb9c0-abba-4ee4-a7aa-89265e886817@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 68279f9c9f)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
2025-02-24 17:12:56 +08:00
..
dnotify treewide: mark stuff as __ro_after_init 2025-02-24 17:12:56 +08:00
fanotify treewide: mark stuff as __ro_after_init 2025-02-24 17:12:56 +08:00
inotify treewide: mark stuff as __ro_after_init 2025-02-24 17:12:56 +08:00
Kconfig fs/notify: Remove "select SRCU" 2023-02-02 16:26:06 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fdinfo.c fs: relax assertions on failure to encode file handles 2025-01-24 10:13:49 +08:00
fdinfo.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fsnotify.c fsnotify: fix sending inotify event with unexpected filename 2024-12-10 20:45:04 +08:00
fsnotify.h fsnotify: clear PARENT_WATCHED flags lazily 2024-12-10 20:41:13 +08:00
group.c fsnotify: create helpers for group mark_mutex lock 2022-04-25 14:37:22 +02:00
mark.c fsnotify: clear PARENT_WATCHED flags lazily 2024-12-10 20:41:13 +08:00
notification.c fsnotify: Pass group argument to free_event 2021-10-27 12:34:18 +02:00