X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fnotify%2Fnotification.c;h=e455e83ceeebc9ea5cb0b3166e10bd505cec43f1;hb=20201aebf8b80d92b407430dd733d5c8f468ab4b;hp=3d76e65ff84ff3aaa11ae90c44af0e23f5d89c50;hpb=af426ec184a38d257457a22554542d4f9bb7eecd;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/notify/notification.c b/fs/notify/notification.c index 3d76e65ff84f..e455e83ceeeb 100644 --- a/fs/notify/notification.c +++ b/fs/notify/notification.c @@ -131,21 +131,6 @@ queue: return ret; } -/* - * Remove @event from group's notification queue. It is the responsibility of - * the caller to destroy the event. - */ -void fsnotify_remove_event(struct fsnotify_group *group, - struct fsnotify_event *event) -{ - mutex_lock(&group->notification_mutex); - if (!list_empty(&event->list)) { - list_del_init(&event->list); - group->q_len--; - } - mutex_unlock(&group->notification_mutex); -} - /* * Remove and return the first event from the notification list. It is the * responsibility of the caller to destroy the obtained event