fsnotify: Add wrapper around fsnotify_add_event
fsnotify_add_event is growing in number of parameters, which in most case are just passed a NULL pointer. So, split out a new fsnotify_insert_event function to clean things up for users who don't need an insert hook. Link: https://lore.kernel.org/r/20211025192746.66445-10-krisman@collabora.com Suggested-by:Amir Goldstein <amir73il@gmail.com> Reviewed-by:
Amir Goldstein <amir73il@gmail.com> Reviewed-by:
Jan Kara <jack@suse.cz> Signed-off-by:
Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by:
Jan Kara <jack@suse.cz>
Showing
- fs/notify/fanotify/fanotify.c 2 additions, 2 deletionsfs/notify/fanotify/fanotify.c
- fs/notify/inotify/inotify_fsnotify.c 1 addition, 1 deletionfs/notify/inotify/inotify_fsnotify.c
- fs/notify/notification.c 6 additions, 6 deletionsfs/notify/notification.c
- include/linux/fsnotify_backend.h 16 additions, 7 deletionsinclude/linux/fsnotify_backend.h
Please register or sign in to comment