Lines Matching refs:id
152 get_random_bytes(&new->id, sizeof(new->id)); in nfs_alloc_unique_id()
153 new->id &= mask; in nfs_alloc_unique_id()
154 if (new->id < minval) in nfs_alloc_unique_id()
155 new->id += minval; in nfs_alloc_unique_id()
164 if (new->id < pos->id) in nfs_alloc_unique_id()
166 else if (new->id > pos->id) in nfs_alloc_unique_id()
176 new->id++; in nfs_alloc_unique_id()
177 if (new->id < minval || (new->id & mask) != new->id) { in nfs_alloc_unique_id()
178 new->id = minval; in nfs_alloc_unique_id()
185 if (new->id < pos->id) in nfs_alloc_unique_id()
191 static void nfs_free_unique_id(struct rb_root *root, struct nfs_unique_id *id) in nfs_free_unique_id() argument
193 rb_erase(&id->rb_node, root); in nfs_free_unique_id()