fanotify: Move locking inside get_one_event()
authorJan Kara <jack@suse.cz>
Tue, 8 Jan 2019 12:52:31 +0000 (13:52 +0100)
committerJan Kara <jack@suse.cz>
Mon, 18 Feb 2019 11:40:46 +0000 (12:40 +0100)
commit8c5544666c9d88046bfd60aa7d5fea5c6d3d59bd
tree5847fbd0406327fe8fcb19bb2edfa292474b63c6
parentaf6a51130626bfd3e60041d80335b2c31590d56d
fanotify: Move locking inside get_one_event()

get_one_event() has a single caller and that just locks
notification_lock around the call. Move locking inside get_one_event()
as that will make using ->response field for permission event state
easier.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c