mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
inotify: fix inotify oneshot support
commit ff311008ab upstream.
During the large inotify rewrite to fsnotify I completely dropped support
for IN_ONESHOT. Reimplement that support.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
af3fc1bc4b
commit
a48981e31d
|
|
@ -72,6 +72,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
|
|||
ret = 0;
|
||||
}
|
||||
|
||||
if (entry->mask & IN_ONESHOT)
|
||||
fsnotify_destroy_mark_by_entry(entry);
|
||||
|
||||
/*
|
||||
* If we hold the entry until after the event is on the queue
|
||||
* IN_IGNORED won't be able to pass this event in the queue
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user