aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify/fanotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/fanotify/fanotify.c')
-rw-r--r--fs/notify/fanotify/fanotify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c
index 060b177146e8..95a330d2f8a1 100644
--- a/fs/notify/fanotify/fanotify.c
+++ b/fs/notify/fanotify/fanotify.c
@@ -27,7 +27,9 @@ static bool should_merge(struct fsnotify_event *old, struct fsnotify_event *new)
27 return false; 27 return false;
28} 28}
29 29
30static int fanotify_merge(struct list_head *list, struct fsnotify_event *event) 30static int fanotify_merge(struct list_head *list,
31 struct fsnotify_event *event,
32 void **arg)
31{ 33{
32 struct fsnotify_event_holder *test_holder; 34 struct fsnotify_event_holder *test_holder;
33 struct fsnotify_event *test_event; 35 struct fsnotify_event *test_event;
@@ -92,7 +94,7 @@ static int fanotify_handle_event(struct fsnotify_group *group, struct fsnotify_e
92 94
93 pr_debug("%s: group=%p event=%p\n", __func__, group, event); 95 pr_debug("%s: group=%p event=%p\n", __func__, group, event);
94 96
95 ret = fsnotify_add_notify_event(group, event, NULL, fanotify_merge); 97 ret = fsnotify_add_notify_event(group, event, NULL, fanotify_merge, NULL);
96 /* -EEXIST means this event was merged with another, not that it was an error */ 98 /* -EEXIST means this event was merged with another, not that it was an error */
97 if (ret == -EEXIST) 99 if (ret == -EEXIST)
98 ret = 0; 100 ret = 0;