Home
last modified time | relevance | path

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

/fs/xfs/scrub/
A Ddqiterate.c27 struct xchk_dqiter *cursor, in xchk_dqiter_init() argument
31 cursor->sc = sc; in xchk_dqiter_init()
34 cursor->quota_ip = xfs_quota_inode(sc->mp, cursor->dqtype); in xchk_dqiter_init()
35 cursor->id = 0; in xchk_dqiter_init()
44 struct xchk_dqiter *cursor) in xchk_dquot_iter_revalidate_bmap() argument
62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap()
80 trace_xchk_dquot_iter_revalidate_bmap(cursor, cursor->id); in xchk_dquot_iter_revalidate_bmap()
100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap()
183 next_ondisk = cursor->id; in xchk_dquot_iter()
202 trace_xchk_dquot_iter(cursor, cursor->id); in xchk_dquot_iter()
[all …]
A Discan.c90 xfs_agino_t *cursor, in xchk_iscan_find_next() argument
101 xfs_agino_t agino = *cursor; in xchk_iscan_find_next()
108 *cursor = NULLAGINO; in xchk_iscan_find_next()
129 *cursor = NULLAGINO; in xchk_iscan_find_next()
178 *cursor = rec.ir_startino + next; in xchk_iscan_find_next()
206 xfs_ino_t cursor, visited; in xchk_iscan_move_cursor() local
215 cursor = XFS_AGINO_TO_INO(mp, agno, agino); in xchk_iscan_move_cursor()
216 if (cursor == 0) in xchk_iscan_move_cursor()
219 visited = cursor - 1; in xchk_iscan_move_cursor()
222 iscan->cursor_ino = cursor; in xchk_iscan_move_cursor()
A Dquota.h32 void xchk_dqiter_init(struct xchk_dqiter *cursor, struct xfs_scrub *sc,
34 int xchk_dquot_iter(struct xchk_dqiter *cursor, struct xfs_dquot **dqpp);
A Ddirtree.c599 xfs_ino_t *cursor) in xchk_dirpath_step_is_stale() argument
602 xfs_ino_t child_ino = *cursor; in xchk_dirpath_step_is_stale()
608 *cursor = be64_to_cpu(step.pptr_rec.p_ino); in xchk_dirpath_step_is_stale()
614 if (p->ip->i_ino != child_ino || p->dp->i_ino != *cursor) in xchk_dirpath_step_is_stale()
664 xfs_ino_t cursor = dl->scan_ino; in xchk_dirpath_is_stale() local
676 ret = xchk_dirpath_step_is_stale(dl, path, 0, idx, p, &cursor); in xchk_dirpath_is_stale()
681 ret = xchk_dirpath_step_is_stale(dl, path, i, idx, p, &cursor); in xchk_dirpath_is_stale()
A Dquotacheck_repair.c144 struct xchk_dqiter cursor = { }; in xqcheck_commit_dqtype() local
156 xchk_dqiter_init(&cursor, sc, dqtype); in xqcheck_commit_dqtype()
157 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xqcheck_commit_dqtype()
A Dquota.c305 struct xchk_dqiter cursor = { }; in xchk_quota() local
330 xchk_dqiter_init(&cursor, sc, dqtype); in xchk_quota()
331 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xchk_quota()
A Dtrace.h469 TP_ARGS(cursor, id),
507 TP_ARGS(cursor, id))
1291 __field(xfs_ino_t, cursor)
1301 __entry->cursor,
1319 __field(xfs_ino_t, cursor)
1333 __entry->cursor,
1349 __field(xfs_ino_t, cursor)
1361 __entry->cursor,
1372 __field(xfs_ino_t, cursor)
1392 __entry->cursor,
[all …]
A Dquota_repair.c508 struct xchk_dqiter cursor = { }; in xrep_quota_problems() local
513 xchk_dqiter_init(&cursor, sc, dqtype); in xrep_quota_problems()
514 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xrep_quota_problems()
A Dquotacheck.c659 struct xchk_dqiter cursor = { }; in xqcheck_compare_dqtype() local
674 xchk_dqiter_init(&cursor, sc, dqtype); in xqcheck_compare_dqtype()
675 while ((error = xchk_dquot_iter(&cursor, &dq)) == 1) { in xqcheck_compare_dqtype()
/fs/xfs/
A Dxfs_attr_list.c44 (!((cursor)->initted) && !((cursor)->hashval) && \
45 !((cursor)->blkno) && !((cursor)->offset))
57 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list() local
164 cursor->initted = 1; in xfs_attr_shortform_list()
165 cursor->blkno = 0; in xfs_attr_shortform_list()
202 cursor->offset++; in xfs_attr_shortform_list()
233 cursor->blkno = 0; in xfs_attr_node_list_lookup()
314 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_node_list() local
326 cursor->initted = 1; in xfs_attr_node_list()
437 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr3_leaf_list_int() local
[all …]
A Dxfs_handle.c449 if (copy_from_user(&context.cursor, ucursor, sizeof(context.cursor))) in xfs_ioc_attr_list()
451 if (context.cursor.pad1 || context.cursor.pad2) in xfs_ioc_attr_list()
453 if (!context.cursor.initted && in xfs_ioc_attr_list()
454 (context.cursor.hashval || context.cursor.blkno || in xfs_ioc_attr_list()
455 context.cursor.offset)) in xfs_ioc_attr_list()
483 copy_to_user(ucursor, &context.cursor, sizeof(context.cursor))) in xfs_ioc_attr_list()
812 memcpy(&gpx->context.cursor, &gp->gp_cursor, in xfs_getparents()
817 trace_xfs_getparents_begin(ip, gp, &gpx->context.cursor); in xfs_getparents()
829 memcpy(&gp->gp_cursor, &gpx->context.cursor, in xfs_getparents()
852 trace_xfs_getparents_end(ip, gp, &gpx->context.cursor); in xfs_getparents()
A Dxfs_trace.h132 __entry->hashval = ctx->cursor.hashval;
133 __entry->blkno = ctx->cursor.blkno;
134 __entry->offset = ctx->cursor.offset;
632 __entry->hashval = ctx->cursor.hashval;
633 __entry->blkno = ctx->cursor.blkno;
634 __entry->offset = ctx->cursor.offset;
/fs/netfs/
A Dfscache_volume.c175 struct fscache_volume *cursor; in fscache_hash_volume() local
184 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_hash_volume()
185 if (fscache_volume_same(candidate, cursor)) { in fscache_hash_volume()
189 set_bit(FSCACHE_VOLUME_COLLIDED_WITH, &cursor->flags); in fscache_hash_volume()
191 collidee_debug_id = cursor->debug_id; in fscache_hash_volume()
204 fscache_see_volume(cursor, fscache_volume_collision); in fscache_hash_volume()
356 struct fscache_volume *cursor; in fscache_wake_pending_volume() local
359 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_wake_pending_volume()
360 if (fscache_volume_same(cursor, volume)) { in fscache_wake_pending_volume()
361 fscache_see_volume(cursor, fscache_volume_see_hash_wake); in fscache_wake_pending_volume()
[all …]
A Dfscache_cookie.c403 struct fscache_cookie *cursor, *wait_for = NULL; in fscache_hash_cookie() local
412 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_hash_cookie()
413 if (fscache_cookie_same(candidate, cursor)) { in fscache_hash_cookie()
414 if (!test_bit(FSCACHE_COOKIE_RELINQUISHED, &cursor->flags)) in fscache_hash_cookie()
416 wait_for = fscache_get_cookie(cursor, in fscache_hash_cookie()
435 trace_fscache_cookie(cursor->debug_id, refcount_read(&cursor->ref), in fscache_hash_cookie()
438 fscache_print_cookie(cursor, 'O'); in fscache_hash_cookie()
/fs/afs/
A Dcell.c245 struct afs_cell *cell, *candidate, *cursor; in afs_lookup_cell() local
280 cursor = rb_entry(parent, struct afs_cell, net_node); in afs_lookup_cell()
282 n = strncasecmp(cursor->name, name, in afs_lookup_cell()
283 min_t(size_t, cursor->name_len, namesz)); in afs_lookup_cell()
285 n = cursor->name_len - namesz; in afs_lookup_cell()
327 cell = cursor; in afs_lookup_cell()
331 afs_use_cell(cursor, trace); in afs_lookup_cell()
869 struct rb_node *cursor; in afs_cell_purge() local
881 for (cursor = rb_first(&net->cells); cursor; cursor = rb_next(cursor)) { in afs_cell_purge()
882 struct afs_cell *cell = rb_entry(cursor, struct afs_cell, net_node); in afs_cell_purge()
A DKconfig35 bool "AFS server cursor debugging"
38 Say Y here to cause the contents of a server cursor to be dumped to
/fs/bcachefs/
A Drcu_pending.c89 struct rcu_head **cursor; member
454 if (unlikely(!objs->cursor)) { in __rcu_pending_enqueue()
461 objs->cursor = genradix_ptr_alloc_preallocated_inlined(&objs->objs, in __rcu_pending_enqueue()
463 if (unlikely(!objs->cursor)) { in __rcu_pending_enqueue()
482 *objs->cursor++ = ptr ?: head; in __rcu_pending_enqueue()
484 if (!(((ulong) objs->cursor) & (GENRADIX_NODE_SIZE - 1))) in __rcu_pending_enqueue()
485 objs->cursor = NULL; in __rcu_pending_enqueue()
542 objs->cursor = NULL; in rcu_pending_pcpu_dequeue()
A Dinode.c972 struct bkey_i_inode_alloc_cursor *cursor = in bch2_inode_alloc_cursor_get() local
976 ret = PTR_ERR_OR_ZERO(cursor); in bch2_inode_alloc_cursor_get()
992 if (le64_to_cpu(cursor->v.idx) < *min) in bch2_inode_alloc_cursor_get()
993 cursor->v.idx = cpu_to_le64(*min); in bch2_inode_alloc_cursor_get()
995 if (le64_to_cpu(cursor->v.idx) >= *max) { in bch2_inode_alloc_cursor_get()
996 cursor->v.idx = cpu_to_le64(*min); in bch2_inode_alloc_cursor_get()
997 le32_add_cpu(&cursor->v.gen, 1); in bch2_inode_alloc_cursor_get()
1001 return ret ? ERR_PTR(ret) : cursor; in bch2_inode_alloc_cursor_get()
1015 int ret = PTR_ERR_OR_ZERO(cursor); in bch2_inode_create()
1019 u64 start = le64_to_cpu(cursor->v.idx); in bch2_inode_create()
[all …]
/fs/
A Dlibfs.c132 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
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()
214 hlist_del_init(&cursor->d_sib); in dcache_readdir()
[all …]
/fs/configfs/
A Ddir.c1617 struct configfs_dirent * cursor = file->private_data; in configfs_dir_close() local
1621 list_del_init(&cursor->s_sibling); in configfs_dir_close()
1625 release_configfs_dirent(cursor); in configfs_dir_close()
1635 struct configfs_dirent *cursor = file->private_data; in configfs_readdir() local
1636 struct list_head *p, *q = &cursor->s_sibling; in configfs_readdir()
1711 struct configfs_dirent *cursor = file->private_data; in configfs_dir_lseek() local
1716 list_del(&cursor->s_sibling); in configfs_dir_lseek()
1726 list_add_tail(&cursor->s_sibling, p); in configfs_dir_lseek()
/fs/overlayfs/
A Dreaddir.c59 struct list_head *cursor; member
337 od->cursor = NULL; in ovl_dir_reset()
399 od->cursor = p; in ovl_seek_cursor()
800 while (od->cursor != &od->cache->entries) { in ovl_iterate()
801 p = list_entry(od->cursor, struct ovl_cache_entry, l_node); in ovl_iterate()
814 od->cursor = p->l_node.next; in ovl_iterate()
/fs/vboxsf/
A Dutils.c21 int cursor, ret; in vboxsf_new_inode() local
30 cursor = idr_get_cursor(&sbi->ino_idr); in vboxsf_new_inode()
32 if (ret >= 0 && ret < cursor) in vboxsf_new_inode()
/fs/xfs/libxfs/
A Dxfs_attr.h57 struct xfs_attrlist_cursor_kern cursor; /* position in list */ member
/fs/unicode/
A 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()

Completed in 65 milliseconds