Lines Matching defs:idr
19 #include <linux/idr.h>
311 idr_set_cursor(&data->idr, (unsigned int)arg);
359 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock,
367 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT);
369 /* we added the mark to the idr, take a reference */
382 struct idr *idr = &group->inotify_data.idr;
388 i_mark = idr_find(idr, wd);
393 /* One ref for being in the idr, one ref we just took */
414 * Remove the mark from the idr (if present) and drop the reference
415 * on the mark because it was in the idr.
420 struct idr *idr = &group->inotify_data.idr;
429 * does this i_mark think it is in the idr? we shouldn't get called
438 /* Lets look in the idr to see if we find it */
447 * We found an mark in the idr at the right wd, but it's
461 * One ref for being in the idr
471 idr_remove(idr, wd);
472 /* Removed from the idr, drop that ref. */
483 * Send IN_IGNORED for this wd, remove this wd from the idr.
495 /* remove this mark from the idr */
563 struct idr *idr = &group->inotify_data.idr;
576 ret = inotify_add_to_idr(idr, idr_lock, tmp_i_mark);
587 /* we are on the idr, now get on the inode */
590 /* we failed to get on the inode, get off the idr */
646 idr_init(&group->inotify_data.idr);