summaryrefslogtreecommitdiffstats
path: root/fs/notify/dnotify/dnotify.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-06-11 17:09:48 +0200
committerEric Paris <eparis@redhat.com>2009-06-11 20:57:55 +0200
commita092ee20fd33d2df0990dcbf2235afc181612818 (patch)
treec172839ce60bcc55e770e6707694842301e3ed6b /fs/notify/dnotify/dnotify.c
parentinotify/dnotify: should_send_event shouldn't match on FS_EVENT_ON_CHILD (diff)
downloadlinux-a092ee20fd33d2df0990dcbf2235afc181612818.tar.xz
linux-a092ee20fd33d2df0990dcbf2235afc181612818.zip
fsnotify: allow groups to set freeing_mark to null
Most fsnotify listeners (all but inotify) do not care about marks being freed. Allow groups to set freeing_mark to null and do not call any function if it is set that way. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/dnotify/dnotify.c')
-rw-r--r--fs/notify/dnotify/dnotify.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index 98a751614c74..828a889be909 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -161,12 +161,6 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
return send;
}
-static void dnotify_freeing_mark(struct fsnotify_mark_entry *entry,
- struct fsnotify_group *group)
-{
- /* dnotify doesn't care than an inode is on the way out */
-}
-
static void dnotify_free_mark(struct fsnotify_mark_entry *entry)
{
struct dnotify_mark_entry *dnentry = container_of(entry,
@@ -182,7 +176,7 @@ static struct fsnotify_ops dnotify_fsnotify_ops = {
.handle_event = dnotify_handle_event,
.should_send_event = dnotify_should_send_event,
.free_group_priv = NULL,
- .freeing_mark = dnotify_freeing_mark,
+ .freeing_mark = NULL,
.free_event_priv = NULL,
};