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 /kernel/audit_watch.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 'kernel/audit_watch.c')
-rw-r--r-- | kernel/audit_watch.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 097a61c65fe0..1b87e757845d 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
@@ -164,8 +164,6 @@ static struct audit_parent *audit_init_parent(struct nameidata *ndp) | |||
164 | return ERR_PTR(ret); | 164 | return ERR_PTR(ret); |
165 | } | 165 | } |
166 | 166 | ||
167 | fsnotify_recalc_group_mask(audit_watch_group); | ||
168 | |||
169 | return parent; | 167 | return parent; |
170 | } | 168 | } |
171 | 169 | ||
@@ -352,9 +350,6 @@ static void audit_remove_parent_watches(struct audit_parent *parent) | |||
352 | mutex_unlock(&audit_filter_mutex); | 350 | mutex_unlock(&audit_filter_mutex); |
353 | 351 | ||
354 | fsnotify_destroy_mark(&parent->mark); | 352 | fsnotify_destroy_mark(&parent->mark); |
355 | |||
356 | fsnotify_recalc_group_mask(audit_watch_group); | ||
357 | |||
358 | } | 353 | } |
359 | 354 | ||
360 | /* Get path information necessary for adding watches. */ | 355 | /* Get path information necessary for adding watches. */ |
@@ -505,9 +500,6 @@ void audit_remove_watch_rule(struct audit_krule *krule) | |||
505 | audit_put_parent(parent); | 500 | audit_put_parent(parent); |
506 | } | 501 | } |
507 | } | 502 | } |
508 | |||
509 | fsnotify_recalc_group_mask(audit_watch_group); | ||
510 | |||
511 | } | 503 | } |
512 | 504 | ||
513 | static bool audit_watch_should_send_event(struct fsnotify_group *group, struct inode *inode, | 505 | static bool audit_watch_should_send_event(struct fsnotify_group *group, struct inode *inode, |