linux/fs/notify/inotify
Amir Goldstein 6f73171e19 fsnotify: allow fsnotify_{peek,remove}_first_event with empty queue
Current code has an assumtion that fsnotify_notify_queue_is_empty() is
called to verify that queue is not empty before trying to peek or remove
an event from queue.

Remove this assumption by moving the fsnotify_notify_queue_is_empty()
into the functions, allow them to return NULL value and check return
value by all callers.

This is a prep patch for multi event queues.

Link: https://lore.kernel.org/r/20210304104826.3993892-2-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2021-03-16 16:14:23 +01:00
..
inotify_fsnotify.c inotify: convert to handle_inode_event() interface 2020-12-03 15:41:29 +01:00
inotify_user.c fsnotify: allow fsnotify_{peek,remove}_first_event with empty queue 2021-03-16 16:14:23 +01:00
inotify.h inotify: convert to handle_inode_event() interface 2020-12-03 15:41:29 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00