diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:24 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:53 -0400 |
commit | e61ce86737b4d60521e4e71f9892fe4bdcfb688b (patch) | |
tree | a1aba411504ac028d4ead6f28ca05bd024c74142 /fs/notify/inotify | |
parent | 72acc854427948efed7a83da27f7dc3239ac9afc (diff) |
fsnotify: rename fsnotify_mark_entry to just fsnotify_mark
The name is long and it serves no real purpose. So rename
fsnotify_mark_entry to just fsnotify_mark.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inotify')
-rw-r--r-- | fs/notify/inotify/inotify.h | 6 | ||||
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 8 | ||||
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/fs/notify/inotify/inotify.h b/fs/notify/inotify/inotify.h index f234f3a4c8ca..07be6df2428f 100644 --- a/fs/notify/inotify/inotify.h +++ b/fs/notify/inotify/inotify.h | |||
@@ -10,12 +10,12 @@ struct inotify_event_private_data { | |||
10 | }; | 10 | }; |
11 | 11 | ||
12 | struct inotify_inode_mark_entry { | 12 | struct inotify_inode_mark_entry { |
13 | /* fsnotify_mark_entry MUST be the first thing */ | 13 | /* fsnotify_mark MUST be the first thing */ |
14 | struct fsnotify_mark_entry fsn_entry; | 14 | struct fsnotify_mark fsn_entry; |
15 | int wd; | 15 | int wd; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | extern void inotify_ignored_and_remove_idr(struct fsnotify_mark_entry *entry, | 18 | extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *entry, |
19 | struct fsnotify_group *group); | 19 | struct fsnotify_group *group); |
20 | extern void inotify_free_event_priv(struct fsnotify_event_private_data *event_priv); | 20 | extern void inotify_free_event_priv(struct fsnotify_event_private_data *event_priv); |
21 | 21 | ||
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index 3edb51cfcfbe..f33a9bd32e5d 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
@@ -88,7 +88,7 @@ static int inotify_merge(struct list_head *list, struct fsnotify_event *event) | |||
88 | 88 | ||
89 | static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_event *event) | 89 | static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_event *event) |
90 | { | 90 | { |
91 | struct fsnotify_mark_entry *entry; | 91 | struct fsnotify_mark *entry; |
92 | struct inotify_inode_mark_entry *ientry; | 92 | struct inotify_inode_mark_entry *ientry; |
93 | struct inode *to_tell; | 93 | struct inode *to_tell; |
94 | struct inotify_event_private_data *event_priv; | 94 | struct inotify_event_private_data *event_priv; |
@@ -135,7 +135,7 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev | |||
135 | return ret; | 135 | return ret; |
136 | } | 136 | } |
137 | 137 | ||
138 | static void inotify_freeing_mark(struct fsnotify_mark_entry *entry, struct fsnotify_group *group) | 138 | static void inotify_freeing_mark(struct fsnotify_mark *entry, struct fsnotify_group *group) |
139 | { | 139 | { |
140 | inotify_ignored_and_remove_idr(entry, group); | 140 | inotify_ignored_and_remove_idr(entry, group); |
141 | } | 141 | } |
@@ -144,7 +144,7 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode | |||
144 | struct vfsmount *mnt, __u32 mask, void *data, | 144 | struct vfsmount *mnt, __u32 mask, void *data, |
145 | int data_type) | 145 | int data_type) |
146 | { | 146 | { |
147 | struct fsnotify_mark_entry *entry; | 147 | struct fsnotify_mark *entry; |
148 | bool send; | 148 | bool send; |
149 | 149 | ||
150 | spin_lock(&inode->i_lock); | 150 | spin_lock(&inode->i_lock); |
@@ -171,7 +171,7 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode | |||
171 | */ | 171 | */ |
172 | static int idr_callback(int id, void *p, void *data) | 172 | static int idr_callback(int id, void *p, void *data) |
173 | { | 173 | { |
174 | struct fsnotify_mark_entry *entry; | 174 | struct fsnotify_mark *entry; |
175 | struct inotify_inode_mark_entry *ientry; | 175 | struct inotify_inode_mark_entry *ientry; |
176 | static bool warned = false; | 176 | static bool warned = false; |
177 | 177 | ||
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 4b1587f9df3b..7be5dcf07ac7 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
@@ -386,7 +386,7 @@ static struct inotify_inode_mark_entry *inotify_idr_find_locked(struct fsnotify_ | |||
386 | 386 | ||
387 | ientry = idr_find(idr, wd); | 387 | ientry = idr_find(idr, wd); |
388 | if (ientry) { | 388 | if (ientry) { |
389 | struct fsnotify_mark_entry *fsn_entry = &ientry->fsn_entry; | 389 | struct fsnotify_mark *fsn_entry = &ientry->fsn_entry; |
390 | 390 | ||
391 | fsnotify_get_mark(fsn_entry); | 391 | fsnotify_get_mark(fsn_entry); |
392 | /* One ref for being in the idr, one ref we just took */ | 392 | /* One ref for being in the idr, one ref we just took */ |
@@ -499,7 +499,7 @@ out: | |||
499 | /* | 499 | /* |
500 | * Send IN_IGNORED for this wd, remove this wd from the idr. | 500 | * Send IN_IGNORED for this wd, remove this wd from the idr. |
501 | */ | 501 | */ |
502 | void inotify_ignored_and_remove_idr(struct fsnotify_mark_entry *entry, | 502 | void inotify_ignored_and_remove_idr(struct fsnotify_mark *entry, |
503 | struct fsnotify_group *group) | 503 | struct fsnotify_group *group) |
504 | { | 504 | { |
505 | struct inotify_inode_mark_entry *ientry; | 505 | struct inotify_inode_mark_entry *ientry; |
@@ -541,7 +541,7 @@ skip_send_ignore: | |||
541 | } | 541 | } |
542 | 542 | ||
543 | /* ding dong the mark is dead */ | 543 | /* ding dong the mark is dead */ |
544 | static void inotify_free_mark(struct fsnotify_mark_entry *entry) | 544 | static void inotify_free_mark(struct fsnotify_mark *entry) |
545 | { | 545 | { |
546 | struct inotify_inode_mark_entry *ientry; | 546 | struct inotify_inode_mark_entry *ientry; |
547 | 547 | ||
@@ -554,7 +554,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group, | |||
554 | struct inode *inode, | 554 | struct inode *inode, |
555 | u32 arg) | 555 | u32 arg) |
556 | { | 556 | { |
557 | struct fsnotify_mark_entry *entry; | 557 | struct fsnotify_mark *entry; |
558 | struct inotify_inode_mark_entry *ientry; | 558 | struct inotify_inode_mark_entry *ientry; |
559 | __u32 old_mask, new_mask; | 559 | __u32 old_mask, new_mask; |
560 | __u32 mask; | 560 | __u32 mask; |