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

For some events (e.g. DN_ATTRIB on sub-directory) fsnotify may call
dnotify_handle_event() once for watching parent and once again for
the watching sub-directory.

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-12-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/dnotify/dnotify.c