Commit cd94c8bb authored by Eric Paris's avatar Eric Paris Committed by Linus Torvalds
Browse files

inotify: tail drop inotify q_overflow events

In f44aebcc

 the tail drop logic of events with no file backing
(q_overflow and in_ignored) was reversed so IN_IGNORED events would
never be tail dropped.  This now means that Q_OVERFLOW events are NOT
tail dropped.  The fix is to not tail drop IN_IGNORED, but to tail drop
Signed-off-by: default avatarEric Paris <>
Signed-off-by: default avatarLinus Torvalds <>
parent eef3a116
......@@ -153,6 +153,10 @@ static bool event_compare(struct fsnotify_event *old, struct fsnotify_event *new
return true;
if (old->mask & FS_Q_OVERFLOW)
return true;
else if (old->mask & FS_IN_IGNORED)
return false;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment