fsnotify: use fsnotify_create_event to allocate the q_overflow event
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 01:12:06 +0000 (20:12 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:19 +0000 (09:58 -0400)
commitb4277d3dd5a7400c1ea7fd4e7d64bda8899f84f5
tree6b309bd5d5362292dded47af3ecf739c509892b1
parent1a3aedbce416dfdbd5d5ac14a0edbcf21a62ee50
fsnotify: use fsnotify_create_event to allocate the q_overflow event

Currently fsnotify defines a static fsnotify event which is sent when a
group overflows its allotted queue length.  This patch just allocates that
event from the event cache rather than defining it statically.  There is no
known reason that the current implementation is wrong, but this makes sure the
event is initialized and created like any other.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/notification.c