mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
fsnotify: pass flags argument to fsnotify_alloc_group()
Add flags argument to fsnotify_alloc_group(), define and use the flag FSNOTIFY_GROUP_USER in inotify and fanotify instead of the helper fsnotify_alloc_user_group() to indicate user allocation. Although the flag FSNOTIFY_GROUP_USER is currently not used after group allocation, we store the flags argument in the group struct for future use of other group flags. Link: https://lore.kernel.org/r/20220422120327.3459282-5-amir73il@gmail.com Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -493,7 +493,7 @@ static const struct fsnotify_ops audit_watch_fsnotify_ops = {
|
||||
|
||||
static int __init audit_watch_init(void)
|
||||
{
|
||||
audit_watch_group = fsnotify_alloc_group(&audit_watch_fsnotify_ops);
|
||||
audit_watch_group = fsnotify_alloc_group(&audit_watch_fsnotify_ops, 0);
|
||||
if (IS_ERR(audit_watch_group)) {
|
||||
audit_watch_group = NULL;
|
||||
audit_panic("cannot create audit fsnotify group");
|
||||
|
||||
Reference in New Issue
Block a user