aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2021-03-04 10:48:22 +0000
committerJan Kara <[email protected]>2021-03-16 15:14:23 +0000
commit6f73171e192366ff7c98af9fb50615ef9615f8a7 (patch)
treea00ed271b9b71439ee22ebf1d48f63eccbbb6665 /tools/perf/scripts/python/mem-phys-addr.py
parentLinux 5.12-rc3 (diff)
downloadkernel-6f73171e192366ff7c98af9fb50615ef9615f8a7.tar.gz
kernel-6f73171e192366ff7c98af9fb50615ef9615f8a7.zip
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/[email protected] Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions