fsnotify: Make fsnotify_mark_connector hold inode reference
authorJan Kara <jack@suse.cz>
Tue, 14 Mar 2017 13:48:00 +0000 (14:48 +0100)
committerJan Kara <jack@suse.cz>
Mon, 10 Apr 2017 15:37:35 +0000 (17:37 +0200)
commite911d8af87dba7642138f4320ca3db80629989f2
treef6023831e4d1eae4e99bc4e389012ec70b897b45
parent86ffe245c430f07f95d5d28d3b694ea72f4492e7
fsnotify: Make fsnotify_mark_connector hold inode reference

Currently inode reference is held by fsnotify marks. Change the rules so
that inode reference is held by fsnotify_mark_connector structure
whenever the list is non-empty. This simplifies the code and is more
logical.

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.h
fs/notify/inode_mark.c
fs/notify/mark.c
include/linux/fsnotify_backend.h