inotify: report both events on parent and child with single callback
authorAmir Goldstein <amir73il@gmail.com>
Thu, 16 Jul 2020 08:42:20 +0000 (11:42 +0300)
committerJan Kara <jack@suse.cz>
Mon, 27 Jul 2020 19:24:51 +0000 (21:24 +0200)
commitc8f3446c66d810e21af61cf889e7b0e3bc921b9d
tree04862fcf2dc949590906af61c3a3991d6815a594
parent62cb0af4cea871e80015dd45b200033002f23a95
inotify: report both events on parent and child with single callback

fsnotify usually calls inotify_handle_event() once for watching parent
to report event with child's name and once for watching child to report
event without child's name.

Do the same thing with a single callback instead of two callbacks when
marks iterator contains both inode and child entries.

Link: https://lore.kernel.org/r/20200716084230.30611-13-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/inotify/inotify_fsnotify.c