We usually rely on the fact that struct members not specified in the
initializer are set to NULL. So do that with fsnotify function pointers
as well.
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
static struct fsnotify_ops dnotify_fsnotify_ops = {
.handle_event = dnotify_handle_event,
- .free_group_priv = NULL,
- .freeing_mark = NULL,
- .free_event = NULL,
};
/*
.handle_event = fanotify_handle_event,
.free_group_priv = fanotify_free_group_priv,
.free_event = fanotify_free_event,
- .freeing_mark = NULL,
};
static const struct fsnotify_ops audit_tree_ops = {
.handle_event = audit_tree_handle_event,
- .free_group_priv = NULL,
- .free_event = NULL,
.freeing_mark = audit_tree_freeing_mark,
};
static const struct fsnotify_ops audit_watch_fsnotify_ops = {
.handle_event = audit_watch_handle_event,
- .free_group_priv = NULL,
- .freeing_mark = NULL,
- .free_event = NULL,
};
static int __init audit_watch_init(void)