fsnotify: replace inode pointer with an object id
authorAmir Goldstein <amir73il@gmail.com>
Thu, 19 Mar 2020 15:10:15 +0000 (17:10 +0200)
committerJan Kara <jack@suse.cz>
Tue, 24 Mar 2020 10:28:00 +0000 (11:28 +0100)
commitdfc2d2594e4a79204a3967585245f00644b8f838
treee90d5dd5034896859de3a29a2c0aaef0cafa637c
parent017de65fe58f2b0ca428b5830609520ded5898b9
fsnotify: replace inode pointer with an object id

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>
fs/notify/fanotify/fanotify.c
fs/notify/inotify/inotify_fsnotify.c
fs/notify/inotify/inotify_user.c
include/linux/fsnotify_backend.h