diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-09-21 21:20:30 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-09-27 16:29:00 +0300 |
commit | 96a71f21ef1fcc32bea07c612a332a89a213f054 (patch) | |
tree | 00bcedff9e9bee4c7cb665b788619a5eec4003e5 /include/linux/fsnotify_backend.h | |
parent | d54f4fba889b205e9cd8239182ca5d27d0ac3bc2 (diff) | |
download | linux-96a71f21ef1fcc32bea07c612a332a89a213f054.tar.xz |
fanotify: store fanotify_init() flags in group's fanotify_data
This averts the need to re-generate flags in fanotify_show_fdinfo()
and sets the scene for addition of more upcoming flags without growing
new members to the fanotify_data struct.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 81b88fc9df31..8e91341cbd8a 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -189,10 +189,10 @@ struct fsnotify_group { /* allows a group to block waiting for a userspace response */ struct list_head access_list; wait_queue_head_t access_waitq; - int f_flags; + int flags; /* flags from fanotify_init() */ + int f_flags; /* event_f_flags from fanotify_init() */ unsigned int max_marks; struct user_struct *user; - bool audit; } fanotify_data; #endif /* CONFIG_FANOTIFY */ }; |