]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/notify/inotify/inotify_user.c
inotify: allow users to request not to recieve events on unlinked children
[net-next-2.6.git] / fs / notify / inotify / inotify_user.c
index f381dafe8efb827508f73c586677838e8debc980..dfc80f70e517880f0bcc1b7d7e195a914a01be7c 100644 (file)
@@ -97,7 +97,7 @@ static inline __u32 inotify_arg_to_mask(u32 arg)
        mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT);
 
        /* mask off the flags used to open the fd */
-       mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT));
+       mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT | IN_EXCL_UNLINK));
 
        return mask;
 }