Lines Matching refs:idr
19 #include <linux/idr.h>
347 idr_set_cursor(&data->idr, (unsigned int)arg);
395 static int inotify_add_to_idr(struct idr *idr, spinlock_t *idr_lock,
403 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT);
405 /* we added the mark to the idr, take a reference */
418 struct idr *idr = &group->inotify_data.idr;
424 i_mark = idr_find(idr, wd);
429 /* One ref for being in the idr, one ref we just took */
450 * Remove the mark from the idr (if present) and drop the reference
451 * on the mark because it was in the idr.
456 struct idr *idr = &group->inotify_data.idr;
465 * does this i_mark think it is in the idr? we shouldn't get called
474 /* Lets look in the idr to see if we find it */
483 * We found an mark in the idr at the right wd, but it's
497 * One ref for being in the idr
507 idr_remove(idr, wd);
508 /* Removed from the idr, drop that ref. */
519 * Send IN_IGNORED for this wd, remove this wd from the idr.
531 /* remove this mark from the idr */
597 struct idr *idr = &group->inotify_data.idr;
609 ret = inotify_add_to_idr(idr, idr_lock, tmp_i_mark);
620 /* we are on the idr, now get on the inode */
623 /* we failed to get on the inode, get off the idr */
680 idr_init(&group->inotify_data.idr);