projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fsnotify: introduce fsnotify_get_group()
[firefly-linux-kernel-4.4.55.git]
/
fs
/
notify
/
group.c
diff --git
a/fs/notify/group.c
b/fs/notify/group.c
index cfda328c3d11035011a639b5a613791bd2df40a2..1d57c35f10431b617dc39c6f7eedc2af18cd5cba 100644
(file)
--- a/
fs/notify/group.c
+++ b/
fs/notify/group.c
@@
-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.
*/