diff options
| author | Jan Kara <jack@suse.cz> | 2014-08-06 19:03:26 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:12 -0400 |
| commit | 8ba8fa917093510cdcb4ec8ff8b9603e1b525658 (patch) | |
| tree | 95726b87a1902928c854e9372a3932dc55fa77aa /include/linux | |
| parent | 3e584064840de14856451ea9ce443c5d4f7e31ff (diff) | |
fsnotify: rename event handling functions
Rename fsnotify_add_notify_event() to fsnotify_add_event() since the
"notify" part is duplicit. Rename fsnotify_remove_notify_event() and
fsnotify_peek_notify_event() to fsnotify_remove_first_event() and
fsnotify_peek_first_event() respectively since "notify" part is duplicit
and they really look at the first event in the queue.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fsnotify_backend.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index fc7718c6bd3e..a6e899943363 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
| @@ -322,16 +322,16 @@ extern int fsnotify_fasync(int fd, struct file *file, int on); | |||
| 322 | extern void fsnotify_destroy_event(struct fsnotify_group *group, | 322 | extern void fsnotify_destroy_event(struct fsnotify_group *group, |
| 323 | struct fsnotify_event *event); | 323 | struct fsnotify_event *event); |
| 324 | /* attach the event to the group notification queue */ | 324 | /* attach the event to the group notification queue */ |
| 325 | extern int fsnotify_add_notify_event(struct fsnotify_group *group, | 325 | extern int fsnotify_add_event(struct fsnotify_group *group, |
| 326 | struct fsnotify_event *event, | 326 | struct fsnotify_event *event, |
| 327 | int (*merge)(struct list_head *, | 327 | int (*merge)(struct list_head *, |
| 328 | struct fsnotify_event *)); | 328 | struct fsnotify_event *)); |
| 329 | /* true if the group notification queue is empty */ | 329 | /* true if the group notification queue is empty */ |
| 330 | extern bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group); | 330 | extern bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group); |
| 331 | /* return, but do not dequeue the first event on the notification queue */ | 331 | /* return, but do not dequeue the first event on the notification queue */ |
| 332 | extern struct fsnotify_event *fsnotify_peek_notify_event(struct fsnotify_group *group); | 332 | extern struct fsnotify_event *fsnotify_peek_first_event(struct fsnotify_group *group); |
| 333 | /* return AND dequeue the first event on the notification queue */ | 333 | /* return AND dequeue the first event on the notification queue */ |
| 334 | extern struct fsnotify_event *fsnotify_remove_notify_event(struct fsnotify_group *group); | 334 | extern struct fsnotify_event *fsnotify_remove_first_event(struct fsnotify_group *group); |
| 335 | 335 | ||
| 336 | /* functions used to manipulate the marks attached to inodes */ | 336 | /* functions used to manipulate the marks attached to inodes */ |
| 337 | 337 | ||
