]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: Allow file handle encoding for unhashed events
authorGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 25 Oct 2021 19:27:29 +0000 (16:27 -0300)
committerJan Kara <jack@suse.cz>
Wed, 27 Oct 2021 10:34:31 +0000 (12:34 +0200)
commit09e66148edc174719942e767a11a369da8a4ff50
tree102187017721e7412ccb921d51868e32932828a1
parent538eb0e8363ca7ec31ee04892668e2d1c35dedb2
fanotify: Allow file handle encoding for unhashed events

Allow passing a NULL hash to fanotify_encode_fh and avoid calculating
the hash if not needed.

Link: https://lore.kernel.org/r/20211025192746.66445-15-krisman@collabora.com
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c