]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/notify/inotify/inotify_fsnotify.c
fsnotify: Move ->free_mark callback to fsnotify_ops
[mirror_ubuntu-bionic-kernel.git] / fs / notify / inotify / inotify_fsnotify.c
index ccd6a4055e0c3dd06cab2733c9c4043af8c588c3..8b73332735ba5071f67c5f39b6079c506cdea6f7 100644 (file)
@@ -176,9 +176,20 @@ static void inotify_free_event(struct fsnotify_event *fsn_event)
        kfree(INOTIFY_E(fsn_event));
 }
 
+/* ding dong the mark is dead */
+static void inotify_free_mark(struct fsnotify_mark *fsn_mark)
+{
+       struct inotify_inode_mark *i_mark;
+
+       i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);
+
+       kmem_cache_free(inotify_inode_mark_cachep, i_mark);
+}
+
 const struct fsnotify_ops inotify_fsnotify_ops = {
        .handle_event = inotify_handle_event,
        .free_group_priv = inotify_free_group_priv,
        .free_event = inotify_free_event,
        .freeing_mark = inotify_freeing_mark,
+       .free_mark = inotify_free_mark,
 };