fsnotify: separate mark iterator type from object type enum
authorAmir Goldstein <amir73il@gmail.com>
Mon, 29 Nov 2021 20:15:28 +0000 (22:15 +0200)
committerJan Kara <jack@suse.cz>
Wed, 15 Dec 2021 13:04:06 +0000 (14:04 +0100)
commit1c9007d62bea6fd164285314f7553f73e5308863
tree7ab0e31db62ecd84d63fc9f9098ac86ad505483a
parentad69cd9972e79aba103ba5365de0acd35770c265
fsnotify: separate mark iterator type from object type enum

They are two different types that use the same enum, so this confusing.

Use the object type to indicate the type of object mark is attached to
and the iter type to indicate the type of watch.

A group can have two different watches of the same object type (parent
and child watches) that match the same event.

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