Skip to content

Commit

Permalink
inotify: fix inotify oneshot support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Paris committed Jul 28, 2010
1 parent e4e047a commit ff31100
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/notify/inotify/inotify_fsnotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
ret = 0;
}

if (fsn_mark->mask & IN_ONESHOT)
fsnotify_destroy_mark(fsn_mark);

/*
* If we hold the fsn_mark until after the event is on the queue
* IN_IGNORED won't be able to pass this event in the queue
Expand Down

0 comments on commit ff31100

Please sign in to comment.