Lines Matching refs:cursor
108 static struct dentry *scan_positives(struct dentry *cursor, in scan_positives() argument
113 struct dentry *dentry = cursor->d_parent, *found = NULL; in scan_positives()
132 if (!hlist_unhashed(&cursor->d_sib)) in scan_positives()
133 __hlist_del(&cursor->d_sib); in scan_positives()
134 hlist_add_behind(&cursor->d_sib, &d->d_sib); in scan_positives()
135 p = &cursor->d_sib.next; in scan_positives()
161 struct dentry *cursor = file->private_data; in dcache_dir_lseek() local
167 to = scan_positives(cursor, &dentry->d_children.first, in dcache_dir_lseek()
170 hlist_del_init(&cursor->d_sib); in dcache_dir_lseek()
172 hlist_add_behind(&cursor->d_sib, &to->d_sib); in dcache_dir_lseek()
193 struct dentry *cursor = file->private_data; in dcache_readdir() local
203 p = &cursor->d_sib.next; in dcache_readdir()
205 while ((next = scan_positives(cursor, p, 1, next)) != NULL) { in dcache_readdir()
214 hlist_del_init(&cursor->d_sib); in dcache_readdir()
216 hlist_add_before(&cursor->d_sib, &next->d_sib); in dcache_readdir()