|
@@ -16,6 +16,8 @@
|
|
|
|
|
|
#include <asm/ioctls.h>
|
|
#include <asm/ioctls.h>
|
|
|
|
|
|
|
|
+#define FANOTIFY_DEFAULT_MAX_EVENTS 16384
|
|
|
|
+
|
|
extern const struct fsnotify_ops fanotify_fsnotify_ops;
|
|
extern const struct fsnotify_ops fanotify_fsnotify_ops;
|
|
|
|
|
|
static struct kmem_cache *fanotify_mark_cache __read_mostly;
|
|
static struct kmem_cache *fanotify_mark_cache __read_mostly;
|
|
@@ -689,6 +691,8 @@ SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags)
|
|
goto out_put_group;
|
|
goto out_put_group;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ group->max_events = FANOTIFY_DEFAULT_MAX_EVENTS;
|
|
|
|
+
|
|
fd = anon_inode_getfd("[fanotify]", &fanotify_fops, group, f_flags);
|
|
fd = anon_inode_getfd("[fanotify]", &fanotify_fops, group, f_flags);
|
|
if (fd < 0)
|
|
if (fd < 0)
|
|
goto out_put_group;
|
|
goto out_put_group;
|