aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/dnotify/dnotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/dnotify/dnotify.c')
-rw-r--r--fs/notify/dnotify/dnotify.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index e6edae60894d..b202bc590c61 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -96,7 +96,7 @@ static int dnotify_handle_event(struct fsnotify_group *group,
96 to_tell = event->to_tell; 96 to_tell = event->to_tell;
97 97
98 spin_lock(&to_tell->i_lock); 98 spin_lock(&to_tell->i_lock);
99 entry = fsnotify_find_mark_entry(group, to_tell); 99 entry = fsnotify_find_mark(group, to_tell);
100 spin_unlock(&to_tell->i_lock); 100 spin_unlock(&to_tell->i_lock);
101 101
102 /* unlikely since we alreay passed dnotify_should_send_event() */ 102 /* unlikely since we alreay passed dnotify_should_send_event() */
@@ -148,7 +148,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
148 return false; 148 return false;
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 153
154 /* no mark means no dnotify watch */ 154 /* no mark means no dnotify watch */
@@ -158,7 +158,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
158 mask = (mask & ~FS_EVENT_ON_CHILD); 158 mask = (mask & ~FS_EVENT_ON_CHILD);
159 send = (mask & entry->mask); 159 send = (mask & entry->mask);
160 160
161 fsnotify_put_mark(entry); /* matches fsnotify_find_mark_entry */ 161 fsnotify_put_mark(entry); /* matches fsnotify_find_mark */
162 162
163 return send; 163 return send;
164} 164}
@@ -202,7 +202,7 @@ void dnotify_flush(struct file *filp, fl_owner_t id)
202 return; 202 return;
203 203
204 spin_lock(&inode->i_lock); 204 spin_lock(&inode->i_lock);
205 entry = fsnotify_find_mark_entry(dnotify_group, inode); 205 entry = fsnotify_find_mark(dnotify_group, inode);
206 spin_unlock(&inode->i_lock); 206 spin_unlock(&inode->i_lock);
207 if (!entry) 207 if (!entry)
208 return; 208 return;
@@ -226,7 +226,7 @@ void dnotify_flush(struct file *filp, fl_owner_t id)
226 226
227 /* nothing else could have found us thanks to the dnotify_mark_mutex */ 227 /* nothing else could have found us thanks to the dnotify_mark_mutex */
228 if (dnentry->dn == NULL) 228 if (dnentry->dn == NULL)
229 fsnotify_destroy_mark_by_entry(entry); 229 fsnotify_destroy_mark(entry);
230 230
231 fsnotify_recalc_group_mask(dnotify_group); 231 fsnotify_recalc_group_mask(dnotify_group);
232 232
@@ -357,7 +357,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
357 357
358 /* add the new_entry or find an old one. */ 358 /* add the new_entry or find an old one. */
359 spin_lock(&inode->i_lock); 359 spin_lock(&inode->i_lock);
360 entry = fsnotify_find_mark_entry(dnotify_group, inode); 360 entry = fsnotify_find_mark(dnotify_group, inode);
361 spin_unlock(&inode->i_lock); 361 spin_unlock(&inode->i_lock);
362 if (entry) { 362 if (entry) {
363 dnentry = container_of(entry, struct dnotify_mark_entry, fsn_entry); 363 dnentry = container_of(entry, struct dnotify_mark_entry, fsn_entry);
@@ -414,7 +414,7 @@ out:
414 spin_unlock(&entry->lock); 414 spin_unlock(&entry->lock);
415 415
416 if (destroy) 416 if (destroy)
417 fsnotify_destroy_mark_by_entry(entry); 417 fsnotify_destroy_mark(entry);
418 418
419 fsnotify_recalc_group_mask(dnotify_group); 419 fsnotify_recalc_group_mask(dnotify_group);
420 420