|
@@ -331,6 +331,12 @@ extern int fsnotify_add_event(struct fsnotify_group *group,
|
|
struct fsnotify_event *event,
|
|
struct fsnotify_event *event,
|
|
int (*merge)(struct list_head *,
|
|
int (*merge)(struct list_head *,
|
|
struct fsnotify_event *));
|
|
struct fsnotify_event *));
|
|
|
|
+/* Queue overflow event to a notification group */
|
|
|
|
+static inline void fsnotify_queue_overflow(struct fsnotify_group *group)
|
|
|
|
+{
|
|
|
|
+ fsnotify_add_event(group, group->overflow_event, NULL);
|
|
|
|
+}
|
|
|
|
+
|
|
/* true if the group notification queue is empty */
|
|
/* true if the group notification queue is empty */
|
|
extern bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group);
|
|
extern bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group);
|
|
/* return, but do not dequeue the first event on the notification queue */
|
|
/* return, but do not dequeue the first event on the notification queue */
|