diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:37 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:48 -0400 |
commit | ff311008ab8d2f2cfdbbefd407d1b05acc8164b2 (patch) | |
tree | f6d21c7c5834cd2f84b4ed1281bbaa057c46187c /fs/notify | |
parent | e4e047a22058f48544b16728e0f15a3fc12bb0cf (diff) |
inotify: fix inotify oneshot support
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>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index daa666a6e6c9..388a150c3d4a 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
@@ -126,6 +126,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev | |||
126 | ret = 0; | 126 | ret = 0; |
127 | } | 127 | } |
128 | 128 | ||
129 | if (fsn_mark->mask & IN_ONESHOT) | ||
130 | fsnotify_destroy_mark(fsn_mark); | ||
131 | |||
129 | /* | 132 | /* |
130 | * If we hold the fsn_mark until after the event is on the queue | 133 | * If we hold the fsn_mark until after the event is on the queue |
131 | * IN_IGNORED won't be able to pass this event in the queue | 134 | * IN_IGNORED won't be able to pass this event in the queue |