diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:24 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:53 -0400 |
commit | d07754412f9cdc2f4a99318d5ee81ace6715ea99 (patch) | |
tree | f62902ad420de023c0fad931d9508903a9f42e3b /kernel | |
parent | e61ce86737b4d60521e4e71f9892fe4bdcfb688b (diff) |
fsnotify: rename fsnotify_find_mark_entry to fsnotify_find_mark
the _entry portion of fsnotify functions is useless. Drop it.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit_tree.c | 12 | ||||
-rw-r--r-- | kernel/audit_watch.c | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index f16f909fbbc1..b20fb055d712 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c | |||
@@ -250,7 +250,7 @@ static void untag_chunk(struct node *p) | |||
250 | list_del_rcu(&chunk->hash); | 250 | list_del_rcu(&chunk->hash); |
251 | spin_unlock(&hash_lock); | 251 | spin_unlock(&hash_lock); |
252 | spin_unlock(&entry->lock); | 252 | spin_unlock(&entry->lock); |
253 | fsnotify_destroy_mark_by_entry(entry); | 253 | fsnotify_destroy_mark(entry); |
254 | fsnotify_put_mark(entry); | 254 | fsnotify_put_mark(entry); |
255 | goto out; | 255 | goto out; |
256 | } | 256 | } |
@@ -293,7 +293,7 @@ static void untag_chunk(struct node *p) | |||
293 | owner->root = new; | 293 | owner->root = new; |
294 | spin_unlock(&hash_lock); | 294 | spin_unlock(&hash_lock); |
295 | spin_unlock(&entry->lock); | 295 | spin_unlock(&entry->lock); |
296 | fsnotify_destroy_mark_by_entry(entry); | 296 | fsnotify_destroy_mark(entry); |
297 | fsnotify_put_mark(entry); | 297 | fsnotify_put_mark(entry); |
298 | goto out; | 298 | goto out; |
299 | 299 | ||
@@ -333,7 +333,7 @@ static int create_chunk(struct inode *inode, struct audit_tree *tree) | |||
333 | spin_unlock(&hash_lock); | 333 | spin_unlock(&hash_lock); |
334 | chunk->dead = 1; | 334 | chunk->dead = 1; |
335 | spin_unlock(&entry->lock); | 335 | spin_unlock(&entry->lock); |
336 | fsnotify_destroy_mark_by_entry(entry); | 336 | fsnotify_destroy_mark(entry); |
337 | fsnotify_put_mark(entry); | 337 | fsnotify_put_mark(entry); |
338 | return 0; | 338 | return 0; |
339 | } | 339 | } |
@@ -361,7 +361,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) | |||
361 | int n; | 361 | int n; |
362 | 362 | ||
363 | spin_lock(&inode->i_lock); | 363 | spin_lock(&inode->i_lock); |
364 | old_entry = fsnotify_find_mark_entry(audit_tree_group, inode); | 364 | old_entry = fsnotify_find_mark(audit_tree_group, inode); |
365 | spin_unlock(&inode->i_lock); | 365 | spin_unlock(&inode->i_lock); |
366 | if (!old_entry) | 366 | if (!old_entry) |
367 | return create_chunk(inode, tree); | 367 | return create_chunk(inode, tree); |
@@ -415,7 +415,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) | |||
415 | spin_unlock(&chunk_entry->lock); | 415 | spin_unlock(&chunk_entry->lock); |
416 | spin_unlock(&old_entry->lock); | 416 | spin_unlock(&old_entry->lock); |
417 | 417 | ||
418 | fsnotify_destroy_mark_by_entry(chunk_entry); | 418 | fsnotify_destroy_mark(chunk_entry); |
419 | 419 | ||
420 | fsnotify_put_mark(chunk_entry); | 420 | fsnotify_put_mark(chunk_entry); |
421 | fsnotify_put_mark(old_entry); | 421 | fsnotify_put_mark(old_entry); |
@@ -446,7 +446,7 @@ static int tag_chunk(struct inode *inode, struct audit_tree *tree) | |||
446 | spin_unlock(&hash_lock); | 446 | spin_unlock(&hash_lock); |
447 | spin_unlock(&chunk_entry->lock); | 447 | spin_unlock(&chunk_entry->lock); |
448 | spin_unlock(&old_entry->lock); | 448 | spin_unlock(&old_entry->lock); |
449 | fsnotify_destroy_mark_by_entry(old_entry); | 449 | fsnotify_destroy_mark(old_entry); |
450 | fsnotify_put_mark(old_entry); /* pair to fsnotify_find mark_entry */ | 450 | fsnotify_put_mark(old_entry); /* pair to fsnotify_find mark_entry */ |
451 | fsnotify_put_mark(old_entry); /* and kill it */ | 451 | fsnotify_put_mark(old_entry); /* and kill it */ |
452 | return 0; | 452 | return 0; |
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index d8cb55a5c059..24ecbebf4354 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
@@ -102,7 +102,7 @@ static inline struct audit_parent *audit_find_parent(struct inode *inode) | |||
102 | struct fsnotify_mark *entry; | 102 | struct fsnotify_mark *entry; |
103 | 103 | ||
104 | spin_lock(&inode->i_lock); | 104 | spin_lock(&inode->i_lock); |
105 | entry = fsnotify_find_mark_entry(audit_watch_group, inode); | 105 | entry = fsnotify_find_mark(audit_watch_group, inode); |
106 | spin_unlock(&inode->i_lock); | 106 | spin_unlock(&inode->i_lock); |
107 | 107 | ||
108 | if (entry) | 108 | if (entry) |
@@ -354,7 +354,7 @@ static void audit_remove_parent_watches(struct audit_parent *parent) | |||
354 | } | 354 | } |
355 | mutex_unlock(&audit_filter_mutex); | 355 | mutex_unlock(&audit_filter_mutex); |
356 | 356 | ||
357 | fsnotify_destroy_mark_by_entry(&parent->mark); | 357 | fsnotify_destroy_mark(&parent->mark); |
358 | 358 | ||
359 | fsnotify_recalc_group_mask(audit_watch_group); | 359 | fsnotify_recalc_group_mask(audit_watch_group); |
360 | 360 | ||
@@ -504,7 +504,7 @@ void audit_remove_watch_rule(struct audit_krule *krule) | |||
504 | 504 | ||
505 | if (list_empty(&parent->watches)) { | 505 | if (list_empty(&parent->watches)) { |
506 | audit_get_parent(parent); | 506 | audit_get_parent(parent); |
507 | fsnotify_destroy_mark_by_entry(&parent->mark); | 507 | fsnotify_destroy_mark(&parent->mark); |
508 | audit_put_parent(parent); | 508 | audit_put_parent(parent); |
509 | } | 509 | } |
510 | } | 510 | } |
@@ -521,7 +521,7 @@ static bool audit_watch_should_send_event(struct fsnotify_group *group, struct i | |||
521 | bool send; | 521 | bool send; |
522 | 522 | ||
523 | spin_lock(&inode->i_lock); | 523 | spin_lock(&inode->i_lock); |
524 | entry = fsnotify_find_mark_entry(group, inode); | 524 | entry = fsnotify_find_mark(group, inode); |
525 | spin_unlock(&inode->i_lock); | 525 | spin_unlock(&inode->i_lock); |
526 | if (!entry) | 526 | if (!entry) |
527 | return false; | 527 | return false; |