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 /fs/notify/inotify | |
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 'fs/notify/inotify')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 2 | ||||
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index 43ab1e1a07a2..0f88bc0b4e6c 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
@@ -108,7 +108,7 @@ int inotify_handle_event(struct fsnotify_group *group, | |||
108 | if (len) | 108 | if (len) |
109 | strcpy(event->name, file_name); | 109 | strcpy(event->name, file_name); |
110 | 110 | ||
111 | ret = fsnotify_add_notify_event(group, fsn_event, inotify_merge); | 111 | ret = fsnotify_add_event(group, fsn_event, inotify_merge); |
112 | if (ret) { | 112 | if (ret) { |
113 | /* Our event wasn't used in the end. Free it. */ | 113 | /* Our event wasn't used in the end. Free it. */ |
114 | fsnotify_destroy_event(group, fsn_event); | 114 | fsnotify_destroy_event(group, fsn_event); |
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index cc423a30a0c8..daf76652fe58 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
@@ -149,7 +149,7 @@ static struct fsnotify_event *get_one_event(struct fsnotify_group *group, | |||
149 | if (fsnotify_notify_queue_is_empty(group)) | 149 | if (fsnotify_notify_queue_is_empty(group)) |
150 | return NULL; | 150 | return NULL; |
151 | 151 | ||
152 | event = fsnotify_peek_notify_event(group); | 152 | event = fsnotify_peek_first_event(group); |
153 | 153 | ||
154 | pr_debug("%s: group=%p event=%p\n", __func__, group, event); | 154 | pr_debug("%s: group=%p event=%p\n", __func__, group, event); |
155 | 155 | ||
@@ -159,7 +159,7 @@ static struct fsnotify_event *get_one_event(struct fsnotify_group *group, | |||
159 | 159 | ||
160 | /* held the notification_mutex the whole time, so this is the | 160 | /* held the notification_mutex the whole time, so this is the |
161 | * same event we peeked above */ | 161 | * same event we peeked above */ |
162 | fsnotify_remove_notify_event(group); | 162 | fsnotify_remove_first_event(group); |
163 | 163 | ||
164 | return event; | 164 | return event; |
165 | } | 165 | } |