diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2011-06-14 11:29:51 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-12-11 13:44:36 -0500 |
commit | e2a29943e9a2ee2aa737a77f550f46ba72269db4 (patch) | |
tree | cf0275eeed130433df241f115cbd2f9ebea96e7f /fs/notify/inode_mark.c | |
parent | 986ab09807ca9454c3f54aae4db7e1bb00daeed3 (diff) |
fsnotify: pass group to fsnotify_destroy_mark()
In fsnotify_destroy_mark() dont get the group from the passed mark anymore,
but pass the group itself as an additional parameter to the function.
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inode_mark.c')
-rw-r--r-- | fs/notify/inode_mark.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 4e9071e37d5d..21230209c957 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c | |||
@@ -99,8 +99,16 @@ void fsnotify_clear_marks_by_inode(struct inode *inode) | |||
99 | spin_unlock(&inode->i_lock); | 99 | spin_unlock(&inode->i_lock); |
100 | 100 | ||
101 | list_for_each_entry_safe(mark, lmark, &free_list, i.free_i_list) { | 101 | list_for_each_entry_safe(mark, lmark, &free_list, i.free_i_list) { |
102 | fsnotify_destroy_mark(mark); | 102 | struct fsnotify_group *group; |
103 | |||
104 | spin_lock(&mark->lock); | ||
105 | fsnotify_get_group(mark->group); | ||
106 | group = mark->group; | ||
107 | spin_unlock(&mark->lock); | ||
108 | |||
109 | fsnotify_destroy_mark(mark, group); | ||
103 | fsnotify_put_mark(mark); | 110 | fsnotify_put_mark(mark); |
111 | fsnotify_put_group(group); | ||
104 | } | 112 | } |
105 | } | 113 | } |
106 | 114 | ||