fsnotify: Move ->free_mark callback to fsnotify_ops
[sfrench/cifs-2.6.git] / kernel / audit_watch.c
index e32efed8682840eb0798e503a4a722a96621b07f..13d30a8dfc5606d3d33ce0a077fe0d731953c413 100644 (file)
@@ -157,8 +157,7 @@ static struct audit_parent *audit_init_parent(struct path *path)
 
        INIT_LIST_HEAD(&parent->watches);
 
-       fsnotify_init_mark(&parent->mark, audit_watch_group,
-                          audit_watch_free_mark);
+       fsnotify_init_mark(&parent->mark, audit_watch_group);
        parent->mark.mask = AUDIT_FS_WATCH;
        ret = fsnotify_add_mark(&parent->mark, inode, NULL, 0);
        if (ret < 0) {
@@ -508,6 +507,7 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
 
 static const struct fsnotify_ops audit_watch_fsnotify_ops = {
        .handle_event =         audit_watch_handle_event,
+       .free_mark =            audit_watch_free_mark,
 };
 
 static int __init audit_watch_init(void)