fsnotify: funnel all dirent events through fsnotify_name()
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:11 +0000 (17:10 +0200)
committerJan Kara <jack@suse.cz>
Mon, 23 Mar 2020 17:14:24 +0000 (18:14 +0100)
commita1aae0570a2b806937120921db2c5d3100ca55fc
tree9455b8afb6188f6ad44fd3817a5679546b01129d
parenteae36a2b8324c9dd0a66b2ae32abd4a456e49c39
fsnotify: funnel all dirent events through fsnotify_name()

Factor out fsnotify_name() from fsnotify_dirent(), so it can also serve
link and rename events and use this helper to report all directory entry
change events.

Both helpers return void because no caller checks their return value.

Link: https://lore.kernel.org/r/20200319151022.31456-4-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
include/linux/fsnotify.h