Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 15 of 15) sorted by relevance

/fs/xfs/
Dxfs_attr_list.c41 #define XFS_ISRESET_CURSOR(cursor) \ argument
42 (!((cursor)->initted) && !((cursor)->hashval) && \
43 !((cursor)->blkno) && !((cursor)->offset))
54 attrlist_cursor_kern_t *cursor; in xfs_attr_shortform_list() local
69 cursor = context->cursor; in xfs_attr_shortform_list()
70 ASSERT(cursor != NULL); in xfs_attr_shortform_list()
84 (XFS_ISRESET_CURSOR(cursor) && in xfs_attr_shortform_list()
152 cursor->initted = 1; in xfs_attr_shortform_list()
153 cursor->blkno = 0; in xfs_attr_shortform_list()
155 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list()
[all …]
Dxfs_xattr.c217 struct attrlist_cursor_kern cursor = { 0 }; in xfs_vn_listxattr() local
226 context.cursor = &cursor; in xfs_vn_listxattr()
Dxfs_ioctl32.c358 attrlist_cursor_kern_t *cursor; in xfs_compat_attrlist_by_handle() local
388 cursor = (attrlist_cursor_kern_t *)&al_hreq.pos; in xfs_compat_attrlist_by_handle()
390 al_hreq.flags, cursor); in xfs_compat_attrlist_by_handle()
394 if (copy_to_user(&p->pos, cursor, sizeof(attrlist_cursor_kern_t))) { in xfs_compat_attrlist_by_handle()
Dxfs_ioctl.c375 attrlist_cursor_kern_t *cursor; in xfs_attrlist_by_handle() local
403 cursor = (attrlist_cursor_kern_t *)&al_hreq.pos; in xfs_attrlist_by_handle()
405 al_hreq.flags, cursor); in xfs_attrlist_by_handle()
409 if (copy_to_user(&p->pos, cursor, sizeof(attrlist_cursor_kern_t))) { in xfs_attrlist_by_handle()
Dxfs_trace.h58 __entry->hashval = ctx->cursor->hashval;
59 __entry->blkno = ctx->cursor->blkno;
60 __entry->offset = ctx->cursor->offset;
184 __entry->hashval = ctx->cursor->hashval;
185 __entry->blkno = ctx->cursor->blkno;
186 __entry->offset = ctx->cursor->offset;
/fs/afs/
Dcell.c228 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
265 cursor = rb_entry(parent, struct afs_cell, net_node); in afs_lookup_cell()
267 n = strncasecmp(cursor->name, name, in afs_lookup_cell()
268 min_t(size_t, cursor->name_len, namesz)); in afs_lookup_cell()
270 n = cursor->name_len - namesz; in afs_lookup_cell()
307 cell = cursor; in afs_lookup_cell()
311 afs_get_cell(cursor); in afs_lookup_cell()
757 struct rb_node *cursor; in afs_manage_cells() local
769 for (cursor = rb_first(&net->cells); cursor; cursor = rb_next(cursor)) { in afs_manage_cells()
771 rb_entry(cursor, struct afs_cell, net_node); in afs_manage_cells()
Dserver.c442 struct rb_node *cursor; in afs_manage_servers() local
453 for (cursor = rb_first(&net->fs_servers); cursor; cursor = rb_next(cursor)) { in afs_manage_servers()
455 rb_entry(cursor, struct afs_server, uuid_rb); in afs_manage_servers()
DKconfig33 bool "AFS server cursor debugging"
36 Say Y here to cause the contents of a server cursor to be dumped to
/fs/
Dlibfs.c98 static struct dentry *scan_positives(struct dentry *cursor, in scan_positives() argument
103 struct dentry *dentry = cursor->d_parent, *found = NULL; in scan_positives()
121 list_move(&cursor->d_child, p); in scan_positives()
122 p = &cursor->d_child; in scan_positives()
148 struct dentry *cursor = file->private_data; in dcache_dir_lseek() local
154 to = scan_positives(cursor, &dentry->d_subdirs, in dcache_dir_lseek()
158 list_move(&cursor->d_child, &to->d_child); in dcache_dir_lseek()
160 list_del_init(&cursor->d_child); in dcache_dir_lseek()
187 struct dentry *cursor = file->private_data; in dcache_readdir() local
197 else if (!list_empty(&cursor->d_child)) in dcache_readdir()
[all …]
/fs/fscache/
Dcookie.c197 struct fscache_cookie *cursor; in fscache_hash_cookie() local
206 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_hash_cookie()
207 if (fscache_compare_cookie(candidate, cursor) == 0) in fscache_hash_cookie()
219 if (test_and_set_bit(FSCACHE_COOKIE_ACQUIRED, &cursor->flags)) { in fscache_hash_cookie()
220 trace_fscache_cookie(cursor, fscache_cookie_collision, in fscache_hash_cookie()
221 atomic_read(&cursor->usage)); in fscache_hash_cookie()
223 fscache_print_cookie(cursor, 'O'); in fscache_hash_cookie()
229 fscache_cookie_get(cursor, fscache_cookie_get_reacquire); in fscache_hash_cookie()
231 return cursor; in fscache_hash_cookie()
/fs/xfs/libxfs/
Dxfs_attr.h115 struct attrlist_cursor_kern *cursor; /* position in list */ member
155 int flags, struct attrlist_cursor_kern *cursor);
/fs/configfs/
Ddir.c1603 struct configfs_dirent * cursor = file->private_data; in configfs_dir_close() local
1607 list_del_init(&cursor->s_sibling); in configfs_dir_close()
1611 release_configfs_dirent(cursor); in configfs_dir_close()
1627 struct configfs_dirent *cursor = file->private_data; in configfs_readdir() local
1628 struct list_head *p, *q = &cursor->s_sibling; in configfs_readdir()
1702 struct configfs_dirent *cursor = file->private_data; in configfs_dir_lseek() local
1707 list_del(&cursor->s_sibling); in configfs_dir_lseek()
1717 list_add_tail(&cursor->s_sibling, p); in configfs_dir_lseek()
/fs/xfs/scrub/
Dattr.c476 struct attrlist_cursor_kern cursor = { 0 }; in xchk_xattr() local
495 sx.context.cursor = &cursor; in xchk_xattr()
/fs/overlayfs/
Dreaddir.c56 struct list_head *cursor; member
344 od->cursor = NULL; in ovl_dir_reset()
402 od->cursor = p; in ovl_seek_cursor()
760 while (od->cursor != &od->cache->entries) { in ovl_iterate()
761 p = list_entry(od->cursor, struct ovl_cache_entry, l_node); in ovl_iterate()
771 od->cursor = p->l_node.next; in ovl_iterate()
/fs/unicode/
Dmkutf8data.c537 void **cursor; in insert() local
543 cursor = &tree->root; in insert()
548 if (!*cursor) in insert()
549 *cursor = alloc_node(node); in insert()
550 node = *cursor; in insert()
554 cursor = &node->right; in insert()
556 cursor = &node->left; in insert()
559 *cursor = leaf; in insert()