Lines Matching refs:context

55 	struct xfs_attr_list_context	*context)
57 struct xfs_attrlist_cursor_kern *cursor = &context->cursor;
58 struct xfs_inode *dp = context->dp;
69 trace_xfs_attr_list_sf(context);
80 if (context->bufsize == 0 ||
82 (dp->i_af.if_bytes + sf->count * 16) < context->bufsize)) {
84 if (XFS_IS_CORRUPT(context->dp->i_mount,
87 xfs_dirattr_mark_sick(context->dp, XFS_ATTR_FORK);
90 context->put_listent(context,
99 if (context->seen_enough)
103 trace_xfs_attr_list_sf_all(context);
108 if (context->bufsize == 0)
128 context->dp->i_mount, sfe,
179 if (XFS_IS_CORRUPT(context->dp->i_mount,
182 xfs_dirattr_mark_sick(context->dp, XFS_ATTR_FORK);
186 context->put_listent(context,
191 if (context->seen_enough)
206 struct xfs_attr_list_context *context,
213 struct xfs_inode *dp = context->dp;
215 struct xfs_trans *tp = context->tp;
259 trace_xfs_attr_list_node_descend(context,
291 struct xfs_attr_list_context *context)
293 struct xfs_attrlist_cursor_kern *cursor = &context->cursor;
298 struct xfs_inode *dp = context->dp;
302 trace_xfs_attr_node_list(context);
313 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, &bp,
326 trace_xfs_attr_list_wrong_blk(context);
327 xfs_trans_brelse(context->tp, bp);
338 trace_xfs_attr_list_wrong_blk(context);
339 xfs_trans_brelse(context->tp, bp);
343 trace_xfs_attr_list_wrong_blk(context);
344 xfs_trans_brelse(context->tp, bp);
349 trace_xfs_attr_list_wrong_blk(context);
350 xfs_trans_brelse(context->tp, bp);
362 error = xfs_attr_node_list_lookup(context, cursor, &bp);
375 error = xfs_attr3_leaf_list_int(bp, context);
379 if (context->seen_enough || leafhdr.forw == 0)
382 xfs_trans_brelse(context->tp, bp);
383 error = xfs_attr3_leaf_read(context->tp, dp, cursor->blkno,
388 xfs_trans_brelse(context->tp, bp);
398 struct xfs_attr_list_context *context)
400 struct xfs_attrlist_cursor_kern *cursor = &context->cursor;
406 struct xfs_mount *mp = context->dp->i_mount;
408 trace_xfs_attr_list_leaf(context);
419 if (context->resynch) {
423 if (cursor->offset == context->dupcnt) {
424 context->dupcnt = 0;
427 context->dupcnt++;
430 context->dupcnt = 0;
435 trace_xfs_attr_list_notfound(context);
442 context->resynch = 0;
457 !context->allow_incomplete)
476 if (XFS_IS_CORRUPT(context->dp->i_mount,
478 xfs_dirattr_mark_sick(context->dp, XFS_ATTR_FORK);
481 context->put_listent(context, entry->flags,
483 if (context->seen_enough)
487 trace_xfs_attr_list_leaf_end(context);
496 struct xfs_attr_list_context *context)
501 trace_xfs_attr_leaf_list(context);
503 context->cursor.blkno = 0;
504 error = xfs_attr3_leaf_read(context->tp, context->dp, 0, &bp);
508 error = xfs_attr3_leaf_list_int(bp, context);
509 xfs_trans_brelse(context->tp, bp);
515 struct xfs_attr_list_context *context)
517 struct xfs_inode *dp = context->dp;
527 return xfs_attr_shortform_list(context);
529 return xfs_attr_leaf_list(context);
530 return xfs_attr_node_list(context);
535 struct xfs_attr_list_context *context)
537 struct xfs_inode *dp = context->dp;
547 error = xfs_attr_list_ilocked(context);