fsnotify: replace inode pointer with an object id
commit6ca61ef0fd16a1873f205aa0c64aace0cab98701
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:15 +0000 (19 17:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:59:28 +0000 (14 07:59 +0200)
treef259651811faf40b12a2be4cd64f0dbe50b7cdfd
parentc2867b7fb74453620772efd34308f96413e27492
fsnotify: replace inode pointer with an object id

[ Upstream commit dfc2d2594e4a79204a3967585245f00644b8f838 ]

The event inode field is used only for comparison in queue merges and
cannot be dereferenced after handle_event(), because it does not hold a
refcount on the inode.

Replace it with an abstract id to do the same thing.

Link: https://lore.kernel.org/r/20200319151022.31456-8-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/notify/fanotify/fanotify.c
fs/notify/inotify/inotify_fsnotify.c
fs/notify/inotify/inotify_user.c
include/linux/fsnotify_backend.h