Blame inotify-fix-inotify-oneshot-support.patch
|
Jesse Keating |
3494df0 |
#607327
|
|
Jesse Keating |
3494df0 |
|
|
Jesse Keating |
3494df0 |
During the large inotify rewrite to fsnotify I completely dropped support
|
|
Jesse Keating |
3494df0 |
for IN_ONESHOT. Reimplement that support.
|
|
Jesse Keating |
3494df0 |
|
|
Jesse Keating |
3494df0 |
Signed-off-by: Eric Paris <eparis@redhat.com>
|
|
Jesse Keating |
3494df0 |
---
|
|
Jesse Keating |
3494df0 |
|
|
Jesse Keating |
3494df0 |
fs/notify/inotify/inotify_fsnotify.c | 3 +++
|
|
Jesse Keating |
3494df0 |
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
Jesse Keating |
3494df0 |
|
|
Jesse Keating |
3494df0 |
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c
|
|
Jesse Keating |
3494df0 |
index daa666a..388a150 100644
|
|
Jesse Keating |
3494df0 |
--- a/fs/notify/inotify/inotify_fsnotify.c
|
|
Jesse Keating |
3494df0 |
+++ b/fs/notify/inotify/inotify_fsnotify.c
|
|
Jesse Keating |
3494df0 |
@@ -126,6 +126,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
|
|
Jesse Keating |
3494df0 |
ret = 0;
|
|
Jesse Keating |
3494df0 |
}
|
|
Jesse Keating |
3494df0 |
|
|
Jesse Keating |
3494df0 |
+ if (entry->mask & IN_ONESHOT)
|
|
Jesse Keating |
3494df0 |
+ fsnotify_destroy_mark_by_entry(entry);
|
|
Jesse Keating |
3494df0 |
+
|
|
Jesse Keating |
3494df0 |
/*
|
|
Jesse Keating |
3494df0 |
* If we hold the entry until after the event is on the queue
|
|
Jesse Keating |
3494df0 |
* IN_IGNORED won't be able to pass this event in the queue
|