diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2026-01-09 22:15:36 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-01-14 16:50:37 +0100 |
| commit | 1219e0feaefc9697f738b223540e8e8906291cb3 (patch) | |
| tree | ac611c2f22a415471f4236e1c14af1e79a72927f /include/uapi/linux | |
| parent | 46329a9dd74bd12e92fb7cc8afe70dad32875758 (diff) | |
fs: move initializing f_mode before file_ref_init()
The comment above file_ref_init() says:
"We're SLAB_TYPESAFE_BY_RCU so initialize f_ref last."
but file_set_fsnotify_mode() was added after file_ref_init().
Move it right after setting f_mode, where it makes more sense.
Fixes: 711f9b8fbe4f4 ("fsnotify: disable pre-content and permission events by default")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://patch.msgid.link/20260109211536.3565697-1-amir73il@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
