From e1f27243f8facc09a6bb10a52d287fe7e152b868 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Fri, 28 Aug 2009 12:50:47 -0400 Subject: [PATCH] --- yaml --- r: 157163 b: refs/heads/master c: 750a8870fe4016ef3091fc97e084d58c613c2cc7 h: refs/heads/master i: 157161: 70e77776fa4a14e1a978c6f76879749e43e23783 157159: d1580b5c39c73d61a1372e4866abe852435dbc93 v: v3 --- [refs] | 2 +- trunk/fs/notify/inotify/inotify_user.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d1d9c2ce4ac9..1187c7a7c9c3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83cb10f0ef3c96162be92339ccf8c0c9c9f2d13e +refs/heads/master: 750a8870fe4016ef3091fc97e084d58c613c2cc7 diff --git a/trunk/fs/notify/inotify/inotify_user.c b/trunk/fs/notify/inotify/inotify_user.c index 6111670b2573..dcd2040d330c 100644 --- a/trunk/fs/notify/inotify/inotify_user.c +++ b/trunk/fs/notify/inotify/inotify_user.c @@ -591,6 +591,10 @@ static int inotify_new_watch(struct fsnotify_group *group, /* match the ref from fsnotify_init_markentry() */ fsnotify_put_mark(&tmp_ientry->fsn_entry); + /* if this mark added a new event update the group mask */ + if (mask & ~group->mask) + fsnotify_recalc_group_mask(group); + out_err: if (ret < 0) kmem_cache_free(inotify_inode_mark_cachep, tmp_ientry);