diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:39 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:54 -0400 |
commit | 43709a288ed03aa0e2979ab63dd089b3889645c4 (patch) | |
tree | 71717ebf944c099af5ab8ea339889665d4b9ef67 /fs/notify/group.c | |
parent | 03930979afa63e079e9aefd4d3dd429240711027 (diff) |
fsnotify: remove group->mask
group->mask is now useless. It was originally a shortcut for fsnotify to
save on performance. These checks are now redundant, so we remove them.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/group.c')
-rw-r--r-- | fs/notify/group.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c index 8da532dd6026..fc0d966b270f 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c | |||
@@ -35,22 +35,6 @@ LIST_HEAD(fsnotify_inode_groups); | |||
35 | /* all groups registered to receive mount point filesystem notifications */ | 35 | /* all groups registered to receive mount point filesystem notifications */ |
36 | LIST_HEAD(fsnotify_vfsmount_groups); | 36 | LIST_HEAD(fsnotify_vfsmount_groups); |
37 | 37 | ||
38 | /* | ||
39 | * Update the group->mask by running all of the marks associated with this | ||
40 | * group and finding the bitwise | of all of the mark->mask. | ||
41 | */ | ||
42 | void fsnotify_recalc_group_mask(struct fsnotify_group *group) | ||
43 | { | ||
44 | __u32 mask = 0; | ||
45 | struct fsnotify_mark *mark; | ||
46 | |||
47 | spin_lock(&group->mark_lock); | ||
48 | list_for_each_entry(mark, &group->marks_list, g_list) | ||
49 | mask |= mark->mask; | ||
50 | group->mask = mask; | ||
51 | spin_unlock(&group->mark_lock); | ||
52 | } | ||
53 | |||
54 | void fsnotify_add_vfsmount_group(struct fsnotify_group *group) | 38 | void fsnotify_add_vfsmount_group(struct fsnotify_group *group) |
55 | { | 39 | { |
56 | struct fsnotify_group *group_iter; | 40 | struct fsnotify_group *group_iter; |