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/dnotify/dnotify.c | |
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/dnotify/dnotify.c')
-rw-r--r-- | fs/notify/dnotify/dnotify.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index fc3a9dc567c5..e6edae60894d 100644 --- a/fs/notify/dnotify/dnotify.c +++ b/fs/notify/dnotify/dnotify.c | |||
@@ -34,12 +34,12 @@ static struct fsnotify_group *dnotify_group __read_mostly; | |||
34 | static DEFINE_MUTEX(dnotify_mark_mutex); | 34 | static DEFINE_MUTEX(dnotify_mark_mutex); |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * dnotify will attach one of these to each inode (i_fsnotify_mark_entries) which | 37 | * dnotify will attach one of these to each inode (i_fsnotify_marks) which |
38 | * is being watched by dnotify. If multiple userspace applications are watching | 38 | * is being watched by dnotify. If multiple userspace applications are watching |
39 | * the same directory with dnotify their information is chained in dn | 39 | * the same directory with dnotify their information is chained in dn |
40 | */ | 40 | */ |
41 | struct dnotify_mark_entry { | 41 | struct dnotify_mark_entry { |
42 | struct fsnotify_mark_entry fsn_entry; | 42 | struct fsnotify_mark fsn_entry; |
43 | struct dnotify_struct *dn; | 43 | struct dnotify_struct *dn; |
44 | }; | 44 | }; |
45 | 45 | ||
@@ -51,7 +51,7 @@ struct dnotify_mark_entry { | |||
51 | * it calls the fsnotify function so it can update the set of all events relevant | 51 | * it calls the fsnotify function so it can update the set of all events relevant |
52 | * to this inode. | 52 | * to this inode. |
53 | */ | 53 | */ |
54 | static void dnotify_recalc_inode_mask(struct fsnotify_mark_entry *entry) | 54 | static void dnotify_recalc_inode_mask(struct fsnotify_mark *entry) |
55 | { | 55 | { |
56 | __u32 new_mask, old_mask; | 56 | __u32 new_mask, old_mask; |
57 | struct dnotify_struct *dn; | 57 | struct dnotify_struct *dn; |
@@ -85,7 +85,7 @@ static void dnotify_recalc_inode_mask(struct fsnotify_mark_entry *entry) | |||
85 | static int dnotify_handle_event(struct fsnotify_group *group, | 85 | static int dnotify_handle_event(struct fsnotify_group *group, |
86 | struct fsnotify_event *event) | 86 | struct fsnotify_event *event) |
87 | { | 87 | { |
88 | struct fsnotify_mark_entry *entry = NULL; | 88 | struct fsnotify_mark *entry = NULL; |
89 | struct dnotify_mark_entry *dnentry; | 89 | struct dnotify_mark_entry *dnentry; |
90 | struct inode *to_tell; | 90 | struct inode *to_tell; |
91 | struct dnotify_struct *dn; | 91 | struct dnotify_struct *dn; |
@@ -136,7 +136,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group, | |||
136 | struct inode *inode, struct vfsmount *mnt, | 136 | struct inode *inode, struct vfsmount *mnt, |
137 | __u32 mask, void *data, int data_type) | 137 | __u32 mask, void *data, int data_type) |
138 | { | 138 | { |
139 | struct fsnotify_mark_entry *entry; | 139 | struct fsnotify_mark *entry; |
140 | bool send; | 140 | bool send; |
141 | 141 | ||
142 | /* !dir_notify_enable should never get here, don't waste time checking | 142 | /* !dir_notify_enable should never get here, don't waste time checking |
@@ -163,7 +163,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group, | |||
163 | return send; | 163 | return send; |
164 | } | 164 | } |
165 | 165 | ||
166 | static void dnotify_free_mark(struct fsnotify_mark_entry *entry) | 166 | static void dnotify_free_mark(struct fsnotify_mark *entry) |
167 | { | 167 | { |
168 | struct dnotify_mark_entry *dnentry = container_of(entry, | 168 | struct dnotify_mark_entry *dnentry = container_of(entry, |
169 | struct dnotify_mark_entry, | 169 | struct dnotify_mark_entry, |
@@ -184,14 +184,14 @@ static struct fsnotify_ops dnotify_fsnotify_ops = { | |||
184 | 184 | ||
185 | /* | 185 | /* |
186 | * Called every time a file is closed. Looks first for a dnotify mark on the | 186 | * Called every time a file is closed. Looks first for a dnotify mark on the |
187 | * inode. If one is found run all of the ->dn entries attached to that | 187 | * inode. If one is found run all of the ->dn structures attached to that |
188 | * mark for one relevant to this process closing the file and remove that | 188 | * mark for one relevant to this process closing the file and remove that |
189 | * dnotify_struct. If that was the last dnotify_struct also remove the | 189 | * dnotify_struct. If that was the last dnotify_struct also remove the |
190 | * fsnotify_mark_entry. | 190 | * fsnotify_mark. |
191 | */ | 191 | */ |
192 | void dnotify_flush(struct file *filp, fl_owner_t id) | 192 | void dnotify_flush(struct file *filp, fl_owner_t id) |
193 | { | 193 | { |
194 | struct fsnotify_mark_entry *entry; | 194 | struct fsnotify_mark *entry; |
195 | struct dnotify_mark_entry *dnentry; | 195 | struct dnotify_mark_entry *dnentry; |
196 | struct dnotify_struct *dn; | 196 | struct dnotify_struct *dn; |
197 | struct dnotify_struct **prev; | 197 | struct dnotify_struct **prev; |
@@ -260,7 +260,7 @@ static __u32 convert_arg(unsigned long arg) | |||
260 | 260 | ||
261 | /* | 261 | /* |
262 | * If multiple processes watch the same inode with dnotify there is only one | 262 | * If multiple processes watch the same inode with dnotify there is only one |
263 | * dnotify mark in inode->i_fsnotify_mark_entries but we chain a dnotify_struct | 263 | * dnotify mark in inode->i_fsnotify_marks but we chain a dnotify_struct |
264 | * onto that mark. This function either attaches the new dnotify_struct onto | 264 | * onto that mark. This function either attaches the new dnotify_struct onto |
265 | * that list, or it |= the mask onto an existing dnofiy_struct. | 265 | * that list, or it |= the mask onto an existing dnofiy_struct. |
266 | */ | 266 | */ |
@@ -298,7 +298,7 @@ static int attach_dn(struct dnotify_struct *dn, struct dnotify_mark_entry *dnent | |||
298 | int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) | 298 | int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) |
299 | { | 299 | { |
300 | struct dnotify_mark_entry *new_dnentry, *dnentry; | 300 | struct dnotify_mark_entry *new_dnentry, *dnentry; |
301 | struct fsnotify_mark_entry *new_entry, *entry; | 301 | struct fsnotify_mark *new_entry, *entry; |
302 | struct dnotify_struct *dn; | 302 | struct dnotify_struct *dn; |
303 | struct inode *inode; | 303 | struct inode *inode; |
304 | fl_owner_t id = current->files; | 304 | fl_owner_t id = current->files; |
@@ -378,7 +378,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) | |||
378 | /* if (f != filp) means that we lost a race and another task/thread | 378 | /* if (f != filp) means that we lost a race and another task/thread |
379 | * actually closed the fd we are still playing with before we grabbed | 379 | * actually closed the fd we are still playing with before we grabbed |
380 | * the dnotify_mark_mutex and entry->lock. Since closing the fd is the | 380 | * the dnotify_mark_mutex and entry->lock. Since closing the fd is the |
381 | * only time we clean up the mark entries we need to get our mark off | 381 | * only time we clean up the marks we need to get our mark off |
382 | * the list. */ | 382 | * the list. */ |
383 | if (f != filp) { | 383 | if (f != filp) { |
384 | /* if we added ourselves, shoot ourselves, it's possible that | 384 | /* if we added ourselves, shoot ourselves, it's possible that |