mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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:
parent
d8153d4d8b
commit
9861295204
2 changed files with 11 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue