diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 44aeb0f1b222..f381dafe8efb 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
@@ -90,8 +90,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg) | |||
90 | { | 90 | { |
91 | __u32 mask; | 91 | __u32 mask; |
92 | 92 | ||
93 | /* everything should accept their own ignored and cares about children */ | 93 | /* |
94 | mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD); | 94 | * everything should accept their own ignored, cares about children, |
95 | * and should receive events when the inode is unmounted | ||
96 | */ | ||
97 | mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT); | ||
95 | 98 | ||
96 | /* mask off the flags used to open the fd */ | 99 | /* mask off the flags used to open the fd */ |
97 | mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT)); | 100 | mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT)); |