diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-03-19 18:10:15 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-03-24 13:28:00 +0300 |
commit | dfc2d2594e4a79204a3967585245f00644b8f838 (patch) | |
tree | e90d5dd5034896859de3a29a2c0aaef0cafa637c /fs/notify/inotify/inotify_user.c | |
parent | 017de65fe58f2b0ca428b5830609520ded5898b9 (diff) | |
download | linux-dfc2d2594e4a79204a3967585245f00644b8f838.tar.xz |
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>
Diffstat (limited to 'fs/notify/inotify/inotify_user.c')
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 107537a543fd..81ffc8629fc4 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -635,7 +635,7 @@ static struct fsnotify_group *inotify_new_group(unsigned int max_events) return ERR_PTR(-ENOMEM); } group->overflow_event = &oevent->fse; - fsnotify_init_event(group->overflow_event, NULL); + fsnotify_init_event(group->overflow_event, 0); oevent->mask = FS_Q_OVERFLOW; oevent->wd = -1; oevent->sync_cookie = 0; |