fsnotify: create method handle_inode_event() in fsnotify_operations
authorAmir Goldstein <amir73il@gmail.com>
Wed, 22 Jul 2020 12:58:48 +0000 (15:58 +0300)
committerJan Kara <jack@suse.cz>
Mon, 27 Jul 2020 21:25:50 +0000 (23:25 +0200)
commitb9a1b9772509cbc6f6aa8bcd0b019f6347a2b631
treefbd01d714b9c385c4dea120be3023604a2aa0dc6
parent691d976352c73f9b55486092625adbcedd5ca5c5
fsnotify: create method handle_inode_event() in fsnotify_operations

The method handle_event() grew a lot of complexity due to the design of
fanotify and merging of ignore masks.

Most backends do not care about this complex functionality, so we can hide
this complexity from them.

Introduce a method handle_inode_event() that serves those backends and
passes a single inode mark and less arguments.

This change converts all backends except fanotify and inotify to use the
simplified handle_inode_event() method.  In pricipal, inotify could have
also used the new method, but that would require passing more arguments
on the simple helper (data, data_type, cookie), so we leave it with the
handle_event() method.

Link: https://lore.kernel.org/r/20200722125849.17418-9-amir73il@gmail.com
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/nfsd/filecache.c
fs/notify/dnotify/dnotify.c
fs/notify/fsnotify.c
include/linux/fsnotify_backend.h
kernel/audit_fsnotify.c
kernel/audit_tree.c
kernel/audit_watch.c