From a43c497f36f32147470d2321fc3ea3c18523618e Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 28 Jul 2010 10:18:37 -0400 Subject: [PATCH] --- yaml --- r: 207707 b: refs/heads/master c: 611da04f7a31b2208e838be55a42c7a1310ae321 h: refs/heads/master i: 207705: f28d04dd572d0879de640aa237e2800321ce8137 207703: 76a58dac4c1c4b356199fd7c3f7aafceae7387ef v: v3 --- [refs] | 2 +- trunk/fs/notify/inotify/inotify_user.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 83df1a44558f..e33a4b22019a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ff311008ab8d2f2cfdbbefd407d1b05acc8164b2 +refs/heads/master: 611da04f7a31b2208e838be55a42c7a1310ae321 diff --git a/trunk/fs/notify/inotify/inotify_user.c b/trunk/fs/notify/inotify/inotify_user.c index 44aeb0f1b222..f381dafe8efb 100644 --- a/trunk/fs/notify/inotify/inotify_user.c +++ b/trunk/fs/notify/inotify/inotify_user.c @@ -90,8 +90,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg) { __u32 mask; - /* everything should accept their own ignored and cares about children */ - mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD); + /* + * everything should accept their own ignored, cares about children, + * and should receive events when the inode is unmounted + */ + 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));