Lines Matching refs:wd
1667 if (event.mask != expected_event || event.wd != expected_wd) { in read_event()
1670 event.mask, expected_event, event.wd, expected_wd); in read_event()
1681 int fd, wd; in test_memcg_inotify_delete_file() local
1695 wd = inotify_add_watch(fd, cg_control(memcg, "memory.events"), IN_DELETE_SELF); in test_memcg_inotify_delete_file()
1696 if (wd == -1) in test_memcg_inotify_delete_file()
1704 if (read_event(fd, IN_DELETE_SELF, wd)) in test_memcg_inotify_delete_file()
1707 if (read_event(fd, IN_IGNORED, wd)) in test_memcg_inotify_delete_file()
1726 int fd, wd; in test_memcg_inotify_delete_dir() local
1740 wd = inotify_add_watch(fd, memcg, IN_DELETE_SELF); in test_memcg_inotify_delete_dir()
1741 if (wd == -1) in test_memcg_inotify_delete_dir()
1749 if (read_event(fd, IN_DELETE_SELF, wd)) in test_memcg_inotify_delete_dir()
1752 if (read_event(fd, IN_IGNORED, wd)) in test_memcg_inotify_delete_dir()