Lines Matching refs:context

54 	struct xfs_attr_list_context	*context)  in xfs_attr_shortform_list()  argument
56 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list()
57 struct xfs_inode *dp = context->dp; in xfs_attr_shortform_list()
69 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list()
80 if (context->bufsize == 0 || in xfs_attr_shortform_list()
82 (dp->i_af.if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
84 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
88 context->put_listent(context, in xfs_attr_shortform_list()
97 if (context->seen_enough) in xfs_attr_shortform_list()
101 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list()
106 if (context->bufsize == 0) in xfs_attr_shortform_list()
126 context->dp->i_mount, sfe, in xfs_attr_shortform_list()
176 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr_shortform_list()
182 context->put_listent(context, in xfs_attr_shortform_list()
187 if (context->seen_enough) in xfs_attr_shortform_list()
202 struct xfs_attr_list_context *context, in xfs_attr_node_list_lookup() argument
209 struct xfs_inode *dp = context->dp; in xfs_attr_node_list_lookup()
211 struct xfs_trans *tp = context->tp; in xfs_attr_node_list_lookup()
255 trace_xfs_attr_list_node_descend(context, in xfs_attr_node_list_lookup()
284 struct xfs_attr_list_context *context) in xfs_attr_node_list() argument
286 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_node_list()
291 struct xfs_inode *dp = context->dp; in xfs_attr_node_list()
295 trace_xfs_attr_node_list(context); in xfs_attr_node_list()
306 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, &bp, in xfs_attr_node_list()
317 trace_xfs_attr_list_wrong_blk(context); in xfs_attr_node_list()
318 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
329 trace_xfs_attr_list_wrong_blk(context); in xfs_attr_node_list()
330 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
334 trace_xfs_attr_list_wrong_blk(context); in xfs_attr_node_list()
335 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
340 trace_xfs_attr_list_wrong_blk(context); in xfs_attr_node_list()
341 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
353 error = xfs_attr_node_list_lookup(context, cursor, &bp); in xfs_attr_node_list()
366 error = xfs_attr3_leaf_list_int(bp, context); in xfs_attr_node_list()
370 if (context->seen_enough || leafhdr.forw == 0) in xfs_attr_node_list()
373 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
374 error = xfs_attr3_leaf_read(context->tp, dp, cursor->blkno, in xfs_attr_node_list()
379 xfs_trans_brelse(context->tp, bp); in xfs_attr_node_list()
389 struct xfs_attr_list_context *context) in xfs_attr3_leaf_list_int() argument
391 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr3_leaf_list_int()
397 struct xfs_mount *mp = context->dp->i_mount; in xfs_attr3_leaf_list_int()
399 trace_xfs_attr_list_leaf(context); in xfs_attr3_leaf_list_int()
410 if (context->resynch) { in xfs_attr3_leaf_list_int()
414 if (cursor->offset == context->dupcnt) { in xfs_attr3_leaf_list_int()
415 context->dupcnt = 0; in xfs_attr3_leaf_list_int()
418 context->dupcnt++; in xfs_attr3_leaf_list_int()
421 context->dupcnt = 0; in xfs_attr3_leaf_list_int()
426 trace_xfs_attr_list_notfound(context); in xfs_attr3_leaf_list_int()
433 context->resynch = 0; in xfs_attr3_leaf_list_int()
448 !context->allow_incomplete) in xfs_attr3_leaf_list_int()
467 if (XFS_IS_CORRUPT(context->dp->i_mount, in xfs_attr3_leaf_list_int()
470 context->put_listent(context, entry->flags, in xfs_attr3_leaf_list_int()
472 if (context->seen_enough) in xfs_attr3_leaf_list_int()
476 trace_xfs_attr_list_leaf_end(context); in xfs_attr3_leaf_list_int()
485 struct xfs_attr_list_context *context) in xfs_attr_leaf_list() argument
490 trace_xfs_attr_leaf_list(context); in xfs_attr_leaf_list()
492 context->cursor.blkno = 0; in xfs_attr_leaf_list()
493 error = xfs_attr3_leaf_read(context->tp, context->dp, 0, &bp); in xfs_attr_leaf_list()
497 error = xfs_attr3_leaf_list_int(bp, context); in xfs_attr_leaf_list()
498 xfs_trans_brelse(context->tp, bp); in xfs_attr_leaf_list()
504 struct xfs_attr_list_context *context) in xfs_attr_list_ilocked() argument
506 struct xfs_inode *dp = context->dp; in xfs_attr_list_ilocked()
516 return xfs_attr_shortform_list(context); in xfs_attr_list_ilocked()
518 return xfs_attr_leaf_list(context); in xfs_attr_list_ilocked()
519 return xfs_attr_node_list(context); in xfs_attr_list_ilocked()
524 struct xfs_attr_list_context *context) in xfs_attr_list() argument
526 struct xfs_inode *dp = context->dp; in xfs_attr_list()
536 error = xfs_attr_list_ilocked(context); in xfs_attr_list()