summaryrefslogtreecommitdiffstats
path: root/fs/notify/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/group.c')
-rw-r--r--fs/notify/group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c
index 32357534de18..b7a4b6a69efa 100644
--- a/fs/notify/group.c
+++ b/fs/notify/group.c
@@ -107,7 +107,7 @@ void fsnotify_destroy_group(struct fsnotify_group *group)
107 */ 107 */
108void fsnotify_get_group(struct fsnotify_group *group) 108void fsnotify_get_group(struct fsnotify_group *group)
109{ 109{
110 atomic_inc(&group->refcnt); 110 refcount_inc(&group->refcnt);
111} 111}
112 112
113/* 113/*
@@ -115,7 +115,7 @@ void fsnotify_get_group(struct fsnotify_group *group)
115 */ 115 */
116void fsnotify_put_group(struct fsnotify_group *group) 116void fsnotify_put_group(struct fsnotify_group *group)
117{ 117{
118 if (atomic_dec_and_test(&group->refcnt)) 118 if (refcount_dec_and_test(&group->refcnt))
119 fsnotify_final_destroy_group(group); 119 fsnotify_final_destroy_group(group);
120} 120}
121 121
@@ -131,7 +131,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
131 return ERR_PTR(-ENOMEM); 131 return ERR_PTR(-ENOMEM);
132 132
133 /* set to 0 when there a no external references to this group */ 133 /* set to 0 when there a no external references to this group */
134 atomic_set(&group->refcnt, 1); 134 refcount_set(&group->refcnt, 1);
135 atomic_set(&group->num_marks, 0); 135 atomic_set(&group->num_marks, 0);
136 atomic_set(&group->user_waits, 0); 136 atomic_set(&group->user_waits, 0);
137 137