Lines Matching full:wd

221 	inotify_event.wd = event->wd;  in copy_event_to_user()
406 i_mark->wd = ret; in inotify_add_to_idr()
416 int wd) in inotify_idr_find_locked() argument
424 i_mark = idr_find(idr, wd); in inotify_idr_find_locked()
437 int wd) in inotify_idr_find() argument
443 i_mark = inotify_idr_find_locked(group, wd); in inotify_idr_find()
459 int wd; in inotify_remove_from_idr() local
462 wd = i_mark->wd; in inotify_remove_from_idr()
468 if (wd == -1) { in inotify_remove_from_idr()
469 WARN_ONCE(1, "%s: i_mark=%p i_mark->wd=%d i_mark->group=%p\n", in inotify_remove_from_idr()
470 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
475 found_i_mark = inotify_idr_find_locked(group, wd); in inotify_remove_from_idr()
477 WARN_ONCE(1, "%s: i_mark=%p i_mark->wd=%d i_mark->group=%p\n", in inotify_remove_from_idr()
478 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
483 * We found an mark in the idr at the right wd, but it's in inotify_remove_from_idr()
488 WARN_ONCE(1, "%s: i_mark=%p i_mark->wd=%d i_mark->group=%p " in inotify_remove_from_idr()
489 "found_i_mark=%p found_i_mark->wd=%d " in inotify_remove_from_idr()
491 i_mark->wd, i_mark->fsn_mark.group, found_i_mark, in inotify_remove_from_idr()
492 found_i_mark->wd, found_i_mark->fsn_mark.group); in inotify_remove_from_idr()
501 printk(KERN_ERR "%s: i_mark=%p i_mark->wd=%d i_mark->group=%p\n", in inotify_remove_from_idr()
502 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
507 idr_remove(idr, wd); in inotify_remove_from_idr()
511 i_mark->wd = -1; in inotify_remove_from_idr()
519 * Send IN_IGNORED for this wd, remove this wd from the idr.
581 /* return the wd */ in inotify_update_existing_watch()
582 ret = i_mark->wd; in inotify_update_existing_watch()
607 tmp_i_mark->wd = -1; in inotify_new_watch()
630 ret = tmp_i_mark->wd; in inotify_new_watch()
672 oevent->wd = -1; in inotify_new_group()
794 SYSCALL_DEFINE2(inotify_rm_watch, int, fd, __s32, wd) in SYSCALL_DEFINE2() argument
811 i_mark = inotify_idr_find(group, wd); in SYSCALL_DEFINE2()