| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #include <linux/list.h> |
|---|
| .. | .. |
|---|
| 38 | 25 | group->ops->free_group_priv(group); |
|---|
| 39 | 26 | |
|---|
| 40 | 27 | mem_cgroup_put(group->memcg); |
|---|
| 28 | + mutex_destroy(&group->mark_mutex); |
|---|
| 41 | 29 | |
|---|
| 42 | 30 | kfree(group); |
|---|
| 43 | 31 | } |
|---|
| .. | .. |
|---|
| 121 | 109 | if (refcount_dec_and_test(&group->refcnt)) |
|---|
| 122 | 110 | fsnotify_final_destroy_group(group); |
|---|
| 123 | 111 | } |
|---|
| 112 | +EXPORT_SYMBOL_GPL(fsnotify_put_group); |
|---|
| 124 | 113 | |
|---|
| 125 | 114 | /* |
|---|
| 126 | 115 | * Create a new fsnotify_group and hold a reference for the group returned. |
|---|
| .. | .. |
|---|
| 150 | 139 | |
|---|
| 151 | 140 | return group; |
|---|
| 152 | 141 | } |
|---|
| 142 | +EXPORT_SYMBOL_GPL(fsnotify_alloc_group); |
|---|
| 153 | 143 | |
|---|
| 154 | 144 | int fsnotify_fasync(int fd, struct file *file, int on) |
|---|
| 155 | 145 | { |
|---|