fsnotify: pass dir and inode arguments to fsnotify()
authorAmir Goldstein <amir73il@gmail.com>
Wed, 22 Jul 2020 12:58:46 +0000 (15:58 +0300)
committerJan Kara <jack@suse.cz>
Mon, 27 Jul 2020 21:15:48 +0000 (23:15 +0200)
commit40a100d3adc1ad7f0a34875468c499fcecd20ba4
tree47a7458fdf4cbe77169f1e6672aa3e1450b4c5b1
parent82ace1efb3cb1d49a1681cc6e31156047d5ae1f2
fsnotify: pass dir and inode arguments to fsnotify()

The arguments of fsnotify() are overloaded and mean different things
for different event types.

Replace the to_tell argument with separate arguments @dir and @inode,
because we may be sending to both dir and child.  Using the @data
argument to pass the child is not enough, because dirent events pass
this argument (for audit), but we do not report to child.

Document the new fsnotify() function argumenets.

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