inotify: convert to handle_inode_event() interface
authorAmir Goldstein <amir73il@gmail.com>
Wed, 2 Dec 2020 12:07:08 +0000 (14:07 +0200)
committerJan Kara <jack@suse.cz>
Thu, 3 Dec 2020 14:41:29 +0000 (15:41 +0100)
commit1a2620a99803ad660edc5d22fd9c66cce91ceb1c
treecbf41d35f6c316749213ed94faf5d6754cf4c1df
parent950cc0d2bef078e1f6459900ca4d4b2a2e0e3c37
inotify: convert to handle_inode_event() interface

Convert inotify to use the simple handle_inode_event() interface to
get rid of the code duplication between the generic helper
fsnotify_handle_event() and the inotify_handle_event() callback, which
also happen to be buggy code.

The bug will be fixed in the generic helper.

Link: https://lore.kernel.org/r/20201202120713.702387-3-amir73il@gmail.com
CC: stable@vger.kernel.org
Fixes: b9a1b9772509 ("fsnotify: create method handle_inode_event() in fsnotify_operations")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/inotify/inotify.h
fs/notify/inotify/inotify_fsnotify.c
fs/notify/inotify/inotify_user.c