diff options
author | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-25 21:27:19 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-27 12:33:04 +0200 |
commit | cc53b55f697fe5aa98bdbfdfe67c6401da242155 (patch) | |
tree | 6ce7d9236799c5e7b458cf48b63b1952724f20c3 /fs/mount.h | |
parent | fsnotify: clarify contract for create event hooks (diff) | |
download | linux-cc53b55f697fe5aa98bdbfdfe67c6401da242155.tar.xz linux-cc53b55f697fe5aa98bdbfdfe67c6401da242155.zip |
fsnotify: Don't insert unmergeable events in hashtable
Some events, like the overflow event, are not mergeable, so they are not
hashed. But, when failing inside fsnotify_add_event for lack of space,
fsnotify_add_event() still calls the insert hook, which adds the
overflow event to the merge list. Add a check to prevent any kind of
unmergeable event to be inserted in the hashtable.
Fixes: 94e00d28a680 ("fsnotify: use hash table for faster events merge")
Link: https://lore.kernel.org/r/20211025192746.66445-5-krisman@collabora.com
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/mount.h')
0 files changed, 0 insertions, 0 deletions