fsnotify: make allow_dups a property of the group
authorAmir Goldstein <amir73il@gmail.com>
Fri, 22 Apr 2022 12:03:16 +0000 (15:03 +0300)
committerJan Kara <jack@suse.cz>
Mon, 25 Apr 2022 12:37:18 +0000 (14:37 +0200)
commitf3010343d9e119da35ee864b3a28993bb5c78ed7
tree5b73e65a048c436097f39bf500c5d13d1a0aad98
parent867a448d587e7fa845bceaf4ee1c632448f2a9fa
fsnotify: make allow_dups a property of the group

Instead of passing the allow_dups argument to fsnotify_add_mark()
as an argument, define the group flag FSNOTIFY_GROUP_DUPS to express
the allow_dups behavior and set this behavior at group creation time
for all calls of fsnotify_add_mark().

Rename the allow_dups argument to generic add_flags argument for future
use.

Link: https://lore.kernel.org/r/20220422120327.3459282-6-amir73il@gmail.com
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/mark.c
include/linux/fsnotify_backend.h
kernel/audit_fsnotify.c