diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2011-06-14 17:29:46 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-12-11 19:29:44 +0100 |
commit | 986129520479d689962a42c31acdeaf854ac91f5 (patch) | |
tree | 0054f75371764fc0a5cc0d194ea7f85e8b94f9d8 /fs/notify | |
parent | inotify, fanotify: replace fsnotify_put_group() with fsnotify_destroy_group() (diff) | |
download | linux-986129520479d689962a42c31acdeaf854ac91f5.tar.xz linux-986129520479d689962a42c31acdeaf854ac91f5.zip |
fsnotify: introduce fsnotify_get_group()
Introduce fsnotify_get_group() which increments the reference counter of a group.
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/group.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c index cfda328c3d11..1d57c35f1043 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c @@ -63,6 +63,14 @@ void fsnotify_destroy_group(struct fsnotify_group *group) } /* + * Get reference to a group. + */ +void fsnotify_get_group(struct fsnotify_group *group) +{ + atomic_inc(&group->refcnt); +} + +/* * Drop a reference to a group. Free it if it's through. */ void fsnotify_put_group(struct fsnotify_group *group) |