Lines Matching refs:dn
53 struct dnotify_struct *dn; member
67 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local
74 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask()
75 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
96 struct dnotify_struct *dn; in dnotify_handle_event() local
108 prev = &dn_mark->dn; in dnotify_handle_event()
109 while ((dn = *prev) != NULL) { in dnotify_handle_event()
110 if ((dn->dn_mask & test_mask) == 0) { in dnotify_handle_event()
111 prev = &dn->dn_next; in dnotify_handle_event()
114 fown = &dn->dn_filp->f_owner; in dnotify_handle_event()
115 send_sigio(fown, dn->dn_fd, POLL_MSG); in dnotify_handle_event()
116 if (dn->dn_mask & FS_DN_MULTISHOT) in dnotify_handle_event()
117 prev = &dn->dn_next; in dnotify_handle_event()
119 *prev = dn->dn_next; in dnotify_handle_event()
120 kmem_cache_free(dnotify_struct_cache, dn); in dnotify_handle_event()
136 BUG_ON(dn_mark->dn); in dnotify_free_mark()
157 struct dnotify_struct *dn; in dnotify_flush() local
174 prev = &dn_mark->dn; in dnotify_flush()
175 while ((dn = *prev) != NULL) { in dnotify_flush()
176 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush()
177 *prev = dn->dn_next; in dnotify_flush()
178 kmem_cache_free(dnotify_struct_cache, dn); in dnotify_flush()
182 prev = &dn->dn_next; in dnotify_flush()
189 if (dn_mark->dn == NULL) { in dnotify_flush()
230 static int attach_dn(struct dnotify_struct *dn, struct dnotify_mark *dn_mark, in attach_dn() argument
235 odn = dn_mark->dn; in attach_dn()
246 dn->dn_mask = mask; in attach_dn()
247 dn->dn_fd = fd; in attach_dn()
248 dn->dn_filp = filp; in attach_dn()
249 dn->dn_owner = id; in attach_dn()
250 dn->dn_next = dn_mark->dn; in attach_dn()
251 dn_mark->dn = dn; in attach_dn()
265 struct dnotify_struct *dn; in fcntl_dirnotify() local
274 dn = NULL; in fcntl_dirnotify()
307 dn = kmem_cache_alloc(dnotify_struct_cache, GFP_KERNEL); in fcntl_dirnotify()
308 if (!dn) { in fcntl_dirnotify()
324 new_dn_mark->dn = NULL; in fcntl_dirnotify()
371 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
374 dn = NULL; in fcntl_dirnotify()
393 if (dn) in fcntl_dirnotify()
394 kmem_cache_free(dnotify_struct_cache, dn); in fcntl_dirnotify()