hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/notify/group.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2008 Red Hat, Inc., Eric Paris <eparis@redhat.com>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2, or (at your option)
7
- * any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; see the file COPYING. If not, write to
16
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
174 */
185
196 #include <linux/list.h>
....@@ -38,6 +25,7 @@
3825 group->ops->free_group_priv(group);
3926
4027 mem_cgroup_put(group->memcg);
28
+ mutex_destroy(&group->mark_mutex);
4129
4230 kfree(group);
4331 }
....@@ -121,6 +109,7 @@
121109 if (refcount_dec_and_test(&group->refcnt))
122110 fsnotify_final_destroy_group(group);
123111 }
112
+EXPORT_SYMBOL_GPL(fsnotify_put_group);
124113
125114 /*
126115 * Create a new fsnotify_group and hold a reference for the group returned.
....@@ -150,6 +139,7 @@
150139
151140 return group;
152141 }
142
+EXPORT_SYMBOL_GPL(fsnotify_alloc_group);
153143
154144 int fsnotify_fasync(int fd, struct file *file, int on)
155145 {