fsnotify: introduce fsnotify_get_group()

Introduce fsnotify_get_group() which increments the reference counter of a group.

Signed-off-by: Lino Sanfilippo <[email protected]>
Signed-off-by: Eric Paris <[email protected]>
This commit is contained in:
Lino Sanfilippo 2011-06-14 17:29:46 +02:00 • committed by Eric Paris
commit 9861295204
2 changed files with 11 additions and 1 deletions

View file

@ -62,6 +62,14 @@ void fsnotify_destroy_group(struct fsnotify_group *group)
fsnotify_final_destroy_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.
*/