fanotify: Simplify create_fd()
authorJan Kara <jack@suse.cz>
Tue, 24 Mar 2020 14:27:52 +0000 (15:27 +0100)
committerJan Kara <jack@suse.cz>
Wed, 25 Mar 2020 09:22:54 +0000 (10:22 +0100)
commita741c2febeadc675aef84bcd6924b6522577d593
tree55c848f371dd7f16b9202f7cca71e3c9412534dc
parent55bf882c7f13dda8bbe624040c6d5b4fbb812d16
fanotify: Simplify create_fd()

create_fd() is never used with invalid path. Also the only thing it
needs to know from fanotify_event is the path. Simplify the function to
take path directly and assume it is correct.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c