Lines Matching refs:idr
28 #include <linux/idr.h>
367 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock,
374 if (unlikely(!idr_pre_get(idr, GFP_KERNEL)))
378 ret = idr_get_new_above(idr, i_mark, *last_wd + 1,
380 /* we added the mark to the idr, take a reference */
394 struct idr *idr = &group->inotify_data.idr;
400 i_mark = idr_find(idr, wd);
405 /* One ref for being in the idr, one ref we just took */
428 struct idr *idr = &group->inotify_data.idr;
434 idr_remove(idr, wd);
436 /* removed from the idr, drop that ref */
441 * Remove the mark from the idr (if present) and drop the reference
442 * on the mark because it was in the idr.
455 * does this i_mark think it is in the idr? we shouldn't get called
465 /* Lets look in the idr to see if we find it */
475 * We found an mark in the idr at the right wd, but it's
491 * One ref for being in the idr
513 * Send IN_IGNORED for this wd, remove this wd from the idr.
555 /* remove this mark from the idr */
632 struct idr *idr = &group->inotify_data.idr;
652 ret = inotify_add_to_idr(idr, idr_lock, &group->inotify_data.last_wd,
657 /* we are on the idr, now get on the inode */
660 /* we failed to get on the inode, get off the idr */
710 idr_init(&group->inotify_data.idr);