aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/inotify
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/inotify
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/inotify')
-rw-r--r--fs/notify/inotify/inotify_fsnotify.c4
-rw-r--r--fs/notify/inotify/inotify_user.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c
index f33a9bd32e5d..f8a2a6eda133 100644
--- a/fs/notify/inotify/inotify_fsnotify.c
+++ b/fs/notify/inotify/inotify_fsnotify.c
@@ -98,7 +98,7 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
98 to_tell = event->to_tell; 98 to_tell = event->to_tell;
99 99
100 spin_lock(&to_tell->i_lock); 100 spin_lock(&to_tell->i_lock);
101 entry = fsnotify_find_mark_entry(group, to_tell); 101 entry = fsnotify_find_mark(group, to_tell);
102 spin_unlock(&to_tell->i_lock); 102 spin_unlock(&to_tell->i_lock);
103 /* race with watch removal? We already passes should_send */ 103 /* race with watch removal? We already passes should_send */
104 if (unlikely(!entry)) 104 if (unlikely(!entry))
@@ -148,7 +148,7 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode
148 bool send; 148 bool send;
149 149
150 spin_lock(&inode->i_lock); 150 spin_lock(&inode->i_lock);
151 entry = fsnotify_find_mark_entry(group, inode); 151 entry = fsnotify_find_mark(group, inode);
152 spin_unlock(&inode->i_lock); 152 spin_unlock(&inode->i_lock);
153 if (!entry) 153 if (!entry)
154 return false; 154 return false;
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c
index 7be5dcf07ac7..118085c9d2d9 100644
--- a/fs/notify/inotify/inotify_user.c
+++ b/fs/notify/inotify/inotify_user.c
@@ -567,7 +567,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,
567 return -EINVAL; 567 return -EINVAL;
568 568
569 spin_lock(&inode->i_lock); 569 spin_lock(&inode->i_lock);
570 entry = fsnotify_find_mark_entry(group, inode); 570 entry = fsnotify_find_mark(group, inode);
571 spin_unlock(&inode->i_lock); 571 spin_unlock(&inode->i_lock);
572 if (!entry) 572 if (!entry)
573 return -ENOENT; 573 return -ENOENT;
@@ -607,7 +607,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,
607 /* return the wd */ 607 /* return the wd */
608 ret = ientry->wd; 608 ret = ientry->wd;
609 609
610 /* match the get from fsnotify_find_mark_entry() */ 610 /* match the get from fsnotify_find_mark() */
611 fsnotify_put_mark(entry); 611 fsnotify_put_mark(entry);
612 612
613 return ret; 613 return ret;
@@ -823,7 +823,7 @@ SYSCALL_DEFINE2(inotify_rm_watch, int, fd, __s32, wd)
823 823
824 ret = 0; 824 ret = 0;
825 825
826 fsnotify_destroy_mark_by_entry(&ientry->fsn_entry); 826 fsnotify_destroy_mark(&ientry->fsn_entry);
827 827
828 /* match ref taken by inotify_idr_find */ 828 /* match ref taken by inotify_idr_find */
829 fsnotify_put_mark(&ientry->fsn_entry); 829 fsnotify_put_mark(&ientry->fsn_entry);