@@ -117,7 +117,7 @@ static void fsnotify_recalc_inode_mask_locked(struct inode *inode)
117117
118118 assert_spin_locked (& inode -> i_lock );
119119
120- hlist_for_each_entry (entry , pos , & inode -> i_fsnotify_mark_entries , i_list )
120+ hlist_for_each_entry (entry , pos , & inode -> i_fsnotify_mark_entries , i . i_list )
121121 new_mask |= entry -> mask ;
122122 inode -> i_fsnotify_mask = new_mask ;
123123}
@@ -148,7 +148,7 @@ void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry)
148148 spin_lock (& entry -> lock );
149149
150150 group = entry -> group ;
151- inode = entry -> inode ;
151+ inode = entry -> i . inode ;
152152
153153 BUG_ON (group && !inode );
154154 BUG_ON (!group && inode );
@@ -165,8 +165,8 @@ void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry)
165165 spin_lock (& group -> mark_lock );
166166 spin_lock (& inode -> i_lock );
167167
168- hlist_del_init (& entry -> i_list );
169- entry -> inode = NULL ;
168+ hlist_del_init (& entry -> i . i_list );
169+ entry -> i . inode = NULL ;
170170
171171 list_del_init (& entry -> g_list );
172172 entry -> group = NULL ;
@@ -248,14 +248,14 @@ void fsnotify_clear_marks_by_inode(struct inode *inode)
248248 LIST_HEAD (free_list );
249249
250250 spin_lock (& inode -> i_lock );
251- hlist_for_each_entry_safe (entry , pos , n , & inode -> i_fsnotify_mark_entries , i_list ) {
252- list_add (& entry -> free_i_list , & free_list );
253- hlist_del_init (& entry -> i_list );
251+ hlist_for_each_entry_safe (entry , pos , n , & inode -> i_fsnotify_mark_entries , i . i_list ) {
252+ list_add (& entry -> i . free_i_list , & free_list );
253+ hlist_del_init (& entry -> i . i_list );
254254 fsnotify_get_mark (entry );
255255 }
256256 spin_unlock (& inode -> i_lock );
257257
258- list_for_each_entry_safe (entry , lentry , & free_list , free_i_list ) {
258+ list_for_each_entry_safe (entry , lentry , & free_list , i . free_i_list ) {
259259 fsnotify_destroy_mark_by_entry (entry );
260260 fsnotify_put_mark (entry );
261261 }
@@ -273,7 +273,7 @@ struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_group *grou
273273
274274 assert_spin_locked (& inode -> i_lock );
275275
276- hlist_for_each_entry (entry , pos , & inode -> i_fsnotify_mark_entries , i_list ) {
276+ hlist_for_each_entry (entry , pos , & inode -> i_fsnotify_mark_entries , i . i_list ) {
277277 if (entry -> group == group ) {
278278 fsnotify_get_mark (entry );
279279 return entry ;
@@ -285,7 +285,7 @@ struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_group *grou
285285void fsnotify_duplicate_mark (struct fsnotify_mark_entry * new , struct fsnotify_mark_entry * old )
286286{
287287 assert_spin_locked (& old -> lock );
288- new -> inode = old -> inode ;
288+ new -> i . inode = old -> i . inode ;
289289 new -> group = old -> group ;
290290 new -> mask = old -> mask ;
291291 new -> free_mark = old -> free_mark ;
@@ -299,10 +299,10 @@ void fsnotify_init_mark(struct fsnotify_mark_entry *entry,
299299{
300300 spin_lock_init (& entry -> lock );
301301 atomic_set (& entry -> refcnt , 1 );
302- INIT_HLIST_NODE (& entry -> i_list );
302+ INIT_HLIST_NODE (& entry -> i . i_list );
303303 entry -> group = NULL ;
304304 entry -> mask = 0 ;
305- entry -> inode = NULL ;
305+ entry -> i . inode = NULL ;
306306 entry -> free_mark = free_mark ;
307307}
308308
@@ -350,9 +350,9 @@ int fsnotify_add_mark(struct fsnotify_mark_entry *entry,
350350 lentry = fsnotify_find_mark_entry (group , inode );
351351 if (!lentry ) {
352352 entry -> group = group ;
353- entry -> inode = inode ;
353+ entry -> i . inode = inode ;
354354
355- hlist_add_head (& entry -> i_list , & inode -> i_fsnotify_mark_entries );
355+ hlist_add_head (& entry -> i . i_list , & inode -> i_fsnotify_mark_entries );
356356 list_add (& entry -> g_list , & group -> mark_entries );
357357
358358 fsnotify_get_mark (entry ); /* for i_list and g_list */
0 commit comments