• Home
  • Raw
  • Download

Lines Matching refs:cursor

41 #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()
156 if (cursor->offset == count) { in xfs_attr_shortform_list()
160 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list()
173 if (cursor->hashval != sbp->hash) { in xfs_attr_shortform_list()
174 cursor->hashval = sbp->hash; in xfs_attr_shortform_list()
175 cursor->offset = 0; in xfs_attr_shortform_list()
184 cursor->offset++; in xfs_attr_shortform_list()
198 struct attrlist_cursor_kern *cursor, in xfs_attr_node_list_lookup() argument
214 cursor->blkno = 0; in xfs_attr_node_list_lookup()
216 error = xfs_da3_node_read(tp, dp, cursor->blkno, -1, &bp, in xfs_attr_node_list_lookup()
239 if (cursor->blkno == 0) in xfs_attr_node_list_lookup()
248 if (cursor->hashval <= be32_to_cpu(btree->hashval)) { in xfs_attr_node_list_lookup()
249 cursor->blkno = be32_to_cpu(btree->before); in xfs_attr_node_list_lookup()
261 if (cursor->blkno == 0) in xfs_attr_node_list_lookup()
281 struct attrlist_cursor_kern *cursor; in xfs_attr_node_list() local
291 cursor = context->cursor; in xfs_attr_node_list()
292 cursor->initted = 1; in xfs_attr_node_list()
300 if (cursor->blkno > 0) { in xfs_attr_node_list()
301 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, -1, in xfs_attr_node_list()
322 if (cursor->hashval > be32_to_cpu( in xfs_attr_node_list()
327 } else if (cursor->hashval <= be32_to_cpu( in xfs_attr_node_list()
348 error = xfs_attr_node_list_lookup(context, cursor, &bp); in xfs_attr_node_list()
365 cursor->blkno = leafhdr.forw; in xfs_attr_node_list()
367 error = xfs_attr3_leaf_read(context->tp, dp, cursor->blkno, -1, &bp); in xfs_attr_node_list()
383 struct attrlist_cursor_kern *cursor; in xfs_attr3_leaf_list_int() local
397 cursor = context->cursor; in xfs_attr3_leaf_list_int()
398 cursor->initted = 1; in xfs_attr3_leaf_list_int()
406 if (be32_to_cpu(entry->hashval) == cursor->hashval) { in xfs_attr3_leaf_list_int()
407 if (cursor->offset == context->dupcnt) { in xfs_attr3_leaf_list_int()
413 cursor->hashval) { in xfs_attr3_leaf_list_int()
435 if (be32_to_cpu(entry->hashval) != cursor->hashval) { in xfs_attr3_leaf_list_int()
436 cursor->hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_list_int()
437 cursor->offset = 0; in xfs_attr3_leaf_list_int()
464 cursor->offset++; in xfs_attr3_leaf_list_int()
481 context->cursor->blkno = 0; in xfs_attr_leaf_list()
603 attrlist_cursor_kern_t *cursor) in xfs_attr_list() argument
612 if (cursor->pad1 || cursor->pad2) in xfs_attr_list()
614 if ((cursor->initted == 0) && in xfs_attr_list()
615 (cursor->hashval || cursor->blkno || cursor->offset)) in xfs_attr_list()
635 context.cursor = cursor; in xfs_attr_list()