fsnotify: generalize iteration of marks by object type
authorAmir Goldstein <amir73il@gmail.com>
Fri, 20 Apr 2018 23:10:52 +0000 (16:10 -0700)
committerJan Kara <jack@suse.cz>
Fri, 18 May 2018 12:58:22 +0000 (14:58 +0200)
commit47d9c7cc457adc5d6d8ca966482a51459f81e852
tree5022fd69ab92a6f522b55ddb69b9ea2b22d84590
parentd9a6f30bb89309a7f2473028a00b83b020049cb4
fsnotify: generalize iteration of marks by object type

Make some code that handles marks of object types inode and vfsmount
generic, so it can handle other object types.

Introduce fsnotify_foreach_obj_type macro to iterate marks by object type
and fsnotify_iter_{should|set}_report_type macros to set/test report_mask.

This is going to be used for adding mark of another object type
(super block mark).

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
fs/notify/inotify/inotify_user.c
fs/notify/mark.c
include/linux/fsnotify_backend.h