OSDN Git Service

fsnotify: Determine lock in fsnotify_destroy_marks()
authorJan Kara <jack@suse.cz>
Wed, 15 Mar 2017 08:41:15 +0000 (09:41 +0100)
committerJan Kara <jack@suse.cz>
Mon, 10 Apr 2017 15:37:35 +0000 (17:37 +0200)
commita03e2e4f078365428bb4317989cb5d1d6563cfe9
treedaa8ada03fa6b829a06482cbda65ffd0da044421
parentf06fd98759451876f51607f60abd74c89b141610
fsnotify: Determine lock in fsnotify_destroy_marks()

Instead of passing spinlock into fsnotify_destroy_marks() determine it
directly in that function from the connector type. This will reduce code
churn when changing lock protecting list of marks.

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/mark.c