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/audit_tree.c | |
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/audit_tree.c')
-rw-r--r-- | kernel/audit_tree.c | 12 |
1 files changed, 6 insertions, 6 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; |