fsnotify: pass connp and object type to fsnotify_add_mark()
authorAmir Goldstein <amir73il@gmail.com>
Sat, 23 Jun 2018 14:54:48 +0000 (17:54 +0300)
committerJan Kara <jack@suse.cz>
Wed, 27 Jun 2018 11:45:03 +0000 (13:45 +0200)
commitb812a9f5896379b6cff2ac168ddb5b89037d8e78
tree459d434209e3b4d07d5949159b5c5d8ea0829d26
parent9b6e543450dc03635899ba56b1c39cc593694560
fsnotify: pass connp and object type to fsnotify_add_mark()

Instead of passing inode and vfsmount arguments to fsnotify_add_mark()
and its _locked variant, pass an abstract object pointer and the object
type.

The helpers fsnotify_obj_{inode,mount} are added to get the concrete
object pointer from abstract object pointer.

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