@@ -88,8 +88,8 @@ static int inotify_merge(struct list_head *list, struct fsnotify_event *event)
8888
8989static int inotify_handle_event (struct fsnotify_group * group , struct fsnotify_event * event )
9090{
91- struct fsnotify_mark * entry ;
92- struct inotify_inode_mark_entry * ientry ;
91+ struct fsnotify_mark * fsn_mark ;
92+ struct inotify_inode_mark * i_mark ;
9393 struct inode * to_tell ;
9494 struct inotify_event_private_data * event_priv ;
9595 struct fsnotify_event_private_data * fsn_event_priv ;
@@ -98,14 +98,14 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
9898 to_tell = event -> to_tell ;
9999
100100 spin_lock (& to_tell -> i_lock );
101- entry = fsnotify_find_mark (group , to_tell );
101+ fsn_mark = fsnotify_find_mark (group , to_tell );
102102 spin_unlock (& to_tell -> i_lock );
103103 /* race with watch removal? We already passes should_send */
104- if (unlikely (!entry ))
104+ if (unlikely (!fsn_mark ))
105105 return 0 ;
106- ientry = container_of (entry , struct inotify_inode_mark_entry ,
107- fsn_entry );
108- wd = ientry -> wd ;
106+ i_mark = container_of (fsn_mark , struct inotify_inode_mark ,
107+ fsn_mark );
108+ wd = i_mark -> wd ;
109109
110110 event_priv = kmem_cache_alloc (event_priv_cachep , GFP_KERNEL );
111111 if (unlikely (!event_priv ))
@@ -127,37 +127,37 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
127127 }
128128
129129 /*
130- * If we hold the entry until after the event is on the queue
130+ * If we hold the fsn_mark until after the event is on the queue
131131 * IN_IGNORED won't be able to pass this event in the queue
132132 */
133- fsnotify_put_mark (entry );
133+ fsnotify_put_mark (fsn_mark );
134134
135135 return ret ;
136136}
137137
138- static void inotify_freeing_mark (struct fsnotify_mark * entry , struct fsnotify_group * group )
138+ static void inotify_freeing_mark (struct fsnotify_mark * fsn_mark , struct fsnotify_group * group )
139139{
140- inotify_ignored_and_remove_idr (entry , group );
140+ inotify_ignored_and_remove_idr (fsn_mark , group );
141141}
142142
143143static bool inotify_should_send_event (struct fsnotify_group * group , struct inode * inode ,
144144 struct vfsmount * mnt , __u32 mask , void * data ,
145145 int data_type )
146146{
147- struct fsnotify_mark * entry ;
147+ struct fsnotify_mark * fsn_mark ;
148148 bool send ;
149149
150150 spin_lock (& inode -> i_lock );
151- entry = fsnotify_find_mark (group , inode );
151+ fsn_mark = fsnotify_find_mark (group , inode );
152152 spin_unlock (& inode -> i_lock );
153- if (!entry )
153+ if (!fsn_mark )
154154 return false;
155155
156156 mask = (mask & ~FS_EVENT_ON_CHILD );
157- send = (entry -> mask & mask );
157+ send = (fsn_mark -> mask & mask );
158158
159159 /* find took a reference */
160- fsnotify_put_mark (entry );
160+ fsnotify_put_mark (fsn_mark );
161161
162162 return send ;
163163}
@@ -171,18 +171,18 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode
171171 */
172172static int idr_callback (int id , void * p , void * data )
173173{
174- struct fsnotify_mark * entry ;
175- struct inotify_inode_mark_entry * ientry ;
174+ struct fsnotify_mark * fsn_mark ;
175+ struct inotify_inode_mark * i_mark ;
176176 static bool warned = false;
177177
178178 if (warned )
179179 return 0 ;
180180
181181 warned = true;
182- entry = p ;
183- ientry = container_of (entry , struct inotify_inode_mark_entry , fsn_entry );
182+ fsn_mark = p ;
183+ i_mark = container_of (fsn_mark , struct inotify_inode_mark , fsn_mark );
184184
185- WARN (1 , "inotify closing but id=%d for entry =%p in group=%p still in "
185+ WARN (1 , "inotify closing but id=%d for fsn_mark =%p in group=%p still in "
186186 "idr. Probably leaking memory\n" , id , p , data );
187187
188188 /*
@@ -191,9 +191,9 @@ static int idr_callback(int id, void *p, void *data)
191191 * out why we got here and the panic is no worse than the original
192192 * BUG() that was here.
193193 */
194- if (entry )
195- printk (KERN_WARNING "entry ->group=%p inode=%p wd=%d\n" ,
196- entry -> group , entry -> i .inode , ientry -> wd );
194+ if (fsn_mark )
195+ printk (KERN_WARNING "fsn_mark ->group=%p inode=%p wd=%d\n" ,
196+ fsn_mark -> group , fsn_mark -> i .inode , i_mark -> wd );
197197 return 0 ;
198198}
199199
0 commit comments