fsnotify: replace inode pointer with an object id
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:15 +0000 (17:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:58:30 +0000 (07:58 +0200)
commit4638e0ff0fa4bc88330f28e756bbcce114afe281
tree8544059c09e2c06a5dbf4e7ebfea6f55ca177a59
parent03447528a39038c49e13d741950fdf6fe67d2af3
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