]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/audit_watch.c
fsnotify: Add group pointer in fsnotify_init_mark()
authorJan Kara <jack@suse.cz>
Wed, 21 Dec 2016 17:32:48 +0000 (18:32 +0100)
committerJan Kara <jack@suse.cz>
Mon, 10 Apr 2017 15:37:36 +0000 (17:37 +0200)
commit7b1293234084ddb6469c4e9a5ef818f399b5786b
tree0b54695cc96dd0a17c893bcd7743f9aea84d5ce2
parentebb3b47e37a4ccef33e6388589a21a5c23d6b40b
fsnotify: Add group pointer in fsnotify_init_mark()

Currently we initialize mark->group only in fsnotify_add_mark_lock().
However we will need to access fsnotify_ops of corresponding group from
fsnotify_put_mark() so we need mark->group initialized earlier. Do that
in fsnotify_init_mark() which has a consequence that once
fsnotify_init_mark() is called on a mark, the mark has to be destroyed
by fsnotify_put_mark().

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/dnotify/dnotify.c
fs/notify/fanotify/fanotify_user.c
fs/notify/inotify/inotify_user.c
fs/notify/mark.c
include/linux/fsnotify_backend.h
kernel/audit_fsnotify.c
kernel/audit_tree.c
kernel/audit_watch.c