Commit d59076d8 authored by Amir Goldstein's avatar Amir Goldstein Committed by Xie XiuQi
Browse files

inotify: convert to handle_inode_event() interface

stable inclusion
from stable-5.10.4
commit 5e78c6bd905e3d972d19a06d8fab8c81350a60ee
bugzilla: 46903

--------------------------------

commit 1a2620a9 upstream.

Convert inotify to use the simple handle_inode_event() interface to
get rid of the code duplication between the generic helper
fsnotify_handle_event() and the inotify_handle_event() callback, which
also happen to be buggy code.

The bug will be fixed in the generic helper.

Link: https://lore.kernel.org/r/20201202120713.702387-3-amir73il@gmail.com


CC: stable@vger.kernel.org
Fixes: b9a1b977 ("fsnotify: create method handle_inode_event() in fsnotify_operations")
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 9b29e103
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment