fanotify: factor out helpers to add/remove mark
authorAmir Goldstein <amir73il@gmail.com>
Sat, 23 Jun 2018 14:54:51 +0000 (17:54 +0300)
committerJan Kara <jack@suse.cz>
Wed, 27 Jun 2018 11:45:12 +0000 (13:45 +0200)
commiteaa2c6b0c9181c3c70f773361bd81d9efd5804d9
tree51ffdced04951e7afa7d0e8ee47a82cc2e3639d0
parent3ac70bfcde812b1b97d8a88a832df59941fa293f
fanotify: factor out helpers to add/remove mark

Factor out helpers fanotify_add_mark() and fanotify_remove_mark()
to reduce duplicated code.

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