aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/inode_mark.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 21:24:24 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:53 -0400
commitd07754412f9cdc2f4a99318d5ee81ace6715ea99 (patch)
treef62902ad420de023c0fad931d9508903a9f42e3b /fs/notify/inode_mark.c
parente61ce86737b4d60521e4e71f9892fe4bdcfb688b (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 'fs/notify/inode_mark.c')
-rw-r--r--fs/notify/inode_mark.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c
index 7e69f6b08d4e..01c42632eb2a 100644
--- a/fs/notify/inode_mark.c
+++ b/fs/notify/inode_mark.c
@@ -56,7 +56,7 @@
56 * - The inode is unlinked for the last time. (fsnotify_inode_remove) 56 * - The inode is unlinked for the last time. (fsnotify_inode_remove)
57 * - The inode is being evicted from cache. (fsnotify_inode_delete) 57 * - The inode is being evicted from cache. (fsnotify_inode_delete)
58 * - The fs the inode is on is unmounted. (fsnotify_inode_delete/fsnotify_unmount_inodes) 58 * - The fs the inode is on is unmounted. (fsnotify_inode_delete/fsnotify_unmount_inodes)
59 * - Something explicitly requests that it be removed. (fsnotify_destroy_mark_by_entry) 59 * - Something explicitly requests that it be removed. (fsnotify_destroy_mark)
60 * - The fsnotify_group associated with the mark is going away and all such marks 60 * - The fsnotify_group associated with the mark is going away and all such marks
61 * need to be cleaned up. (fsnotify_clear_marks_by_group) 61 * need to be cleaned up. (fsnotify_clear_marks_by_group)
62 * 62 *
@@ -140,7 +140,7 @@ void fsnotify_recalc_inode_mask(struct inode *inode)
140 * The caller had better be holding a reference to this mark so we don't actually 140 * The caller had better be holding a reference to this mark so we don't actually
141 * do the final put under the entry->lock 141 * do the final put under the entry->lock
142 */ 142 */
143void fsnotify_destroy_mark_by_entry(struct fsnotify_mark *entry) 143void fsnotify_destroy_mark(struct fsnotify_mark *entry)
144{ 144{
145 struct fsnotify_group *group; 145 struct fsnotify_group *group;
146 struct inode *inode; 146 struct inode *inode;
@@ -233,7 +233,7 @@ void fsnotify_clear_marks_by_group(struct fsnotify_group *group)
233 spin_unlock(&group->mark_lock); 233 spin_unlock(&group->mark_lock);
234 234
235 list_for_each_entry_safe(entry, lentry, &free_list, free_g_list) { 235 list_for_each_entry_safe(entry, lentry, &free_list, free_g_list) {
236 fsnotify_destroy_mark_by_entry(entry); 236 fsnotify_destroy_mark(entry);
237 fsnotify_put_mark(entry); 237 fsnotify_put_mark(entry);
238 } 238 }
239} 239}
@@ -256,7 +256,7 @@ void fsnotify_clear_marks_by_inode(struct inode *inode)
256 spin_unlock(&inode->i_lock); 256 spin_unlock(&inode->i_lock);
257 257
258 list_for_each_entry_safe(entry, lentry, &free_list, i.free_i_list) { 258 list_for_each_entry_safe(entry, lentry, &free_list, i.free_i_list) {
259 fsnotify_destroy_mark_by_entry(entry); 259 fsnotify_destroy_mark(entry);
260 fsnotify_put_mark(entry); 260 fsnotify_put_mark(entry);
261 } 261 }
262} 262}
@@ -265,8 +265,8 @@ void fsnotify_clear_marks_by_inode(struct inode *inode)
265 * given a group and inode, find the mark associated with that combination. 265 * given a group and inode, find the mark associated with that combination.
266 * if found take a reference to that mark and return it, else return NULL 266 * if found take a reference to that mark and return it, else return NULL
267 */ 267 */
268struct fsnotify_mark *fsnotify_find_mark_entry(struct fsnotify_group *group, 268struct fsnotify_mark *fsnotify_find_mark(struct fsnotify_group *group,
269 struct inode *inode) 269 struct inode *inode)
270{ 270{
271 struct fsnotify_mark *entry; 271 struct fsnotify_mark *entry;
272 struct hlist_node *pos; 272 struct hlist_node *pos;
@@ -349,7 +349,7 @@ int fsnotify_add_mark(struct fsnotify_mark *entry,
349 spin_lock(&inode->i_lock); 349 spin_lock(&inode->i_lock);
350 350
351 if (!allow_dups) 351 if (!allow_dups)
352 lentry = fsnotify_find_mark_entry(group, inode); 352 lentry = fsnotify_find_mark(group, inode);
353 if (!lentry) { 353 if (!lentry) {
354 entry->group = group; 354 entry->group = group;
355 entry->i.inode = inode; 355 entry->i.inode = inode;