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>
Showing
- fs/notify/dnotify/dnotify.c 2 additions, 3 deletionsfs/notify/dnotify/dnotify.c
- fs/notify/fanotify/fanotify_user.c 2 additions, 2 deletionsfs/notify/fanotify/fanotify_user.c
- fs/notify/inotify/inotify_user.c 2 additions, 3 deletionsfs/notify/inotify/inotify_user.c
- fs/notify/mark.c 10 additions, 7 deletionsfs/notify/mark.c
- include/linux/fsnotify_backend.h 7 additions, 5 deletionsinclude/linux/fsnotify_backend.h
- kernel/audit_fsnotify.c 4 additions, 3 deletionskernel/audit_fsnotify.c
- kernel/audit_tree.c 8 additions, 7 deletionskernel/audit_tree.c
- kernel/audit_watch.c 3 additions, 2 deletionskernel/audit_watch.c
Please register or sign in to comment