X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Finotify_user.c;h=3ab09a65c456499d0b51604ab84f364c42f4eed5;hb=91dbbe4896f374462c5912fbb3ec0dbab4814783;hp=a336c9709f3cc477ed15236642b743f0a3ca493e;hpb=e5e54bc86a1fed9849b22fd736c30b23c4719046;p=linux-2.6 diff --git a/fs/inotify_user.c b/fs/inotify_user.c index a336c9709f..3ab09a65c4 100644 --- a/fs/inotify_user.c +++ b/fs/inotify_user.c @@ -283,7 +283,7 @@ static void inotify_dev_queue_event(struct inotify_watch *w, u32 wd, u32 mask, /* we can safely put the watch as we don't reference it while * generating the event */ - if (mask & IN_IGNORED || mask & IN_ONESHOT) + if (mask & IN_IGNORED || w->mask & IN_ONESHOT) put_inotify_watch(w); /* final put */ /* coalescing: drop this event if it is a dupe of the previous */