diff options
Diffstat (limited to 'fs/notify/inode_mark.c')
-rw-r--r-- | fs/notify/inode_mark.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 7d2962e5328e..a3230c485531 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c | |||
@@ -323,6 +323,13 @@ int fsnotify_add_mark(struct fsnotify_mark_entry *entry, | |||
323 | return -EINVAL; | 323 | return -EINVAL; |
324 | 324 | ||
325 | /* | 325 | /* |
326 | * if this group isn't being testing for inode type events we need | ||
327 | * to start testing | ||
328 | */ | ||
329 | if (unlikely(list_empty(&group->inode_group_list))) | ||
330 | fsnotify_add_inode_group(group); | ||
331 | |||
332 | /* | ||
326 | * LOCKING ORDER!!!! | 333 | * LOCKING ORDER!!!! |
327 | * entry->lock | 334 | * entry->lock |
328 | * group->mark_lock | 335 | * group->mark_lock |