fanotify: generalize merge logic of events on dir
authorAmir Goldstein <amir73il@gmail.com>
Thu, 16 Jul 2020 08:42:10 +0000 (11:42 +0300)
committerJan Kara <jack@suse.cz>
Mon, 27 Jul 2020 19:23:36 +0000 (21:23 +0200)
commit103ff6a554923e0da54e0a28a686c91facf5bffd
treeafa8a3315b28d380611f938c4388472ba31db5e0
parent0badfa029e5fd6d5462adb767937319335637c83
fanotify: generalize merge logic of events on dir

An event on directory should never be merged with an event on
non-directory regardless of the event struct type.

This change has no visible effect, because currently, with struct
fanotify_path_event, the relevant events will not be merged because
event path of dir will be different than event path of non-dir.

Link: https://lore.kernel.org/r/20200716084230.30611-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