Lines Matching refs:sx
113 struct xchk_xattr *sx; in xchk_xattr_listent() local
117 sx = container_of(context, struct xchk_xattr, context); in xchk_xattr_listent()
119 if (xchk_should_terminate(sx->sc, &error)) { in xchk_xattr_listent()
126 xchk_ino_set_preen(sx->sc, context->dp->i_ino); in xchk_xattr_listent()
132 xchk_fblock_set_corrupt(sx->sc, XFS_ATTR_FORK, args.blkno); in xchk_xattr_listent()
141 error = xchk_setup_xattr_buf(sx->sc, valuelen, in xchk_xattr_listent()
159 args.value = xchk_xattr_valuebuf(sx->sc); in xchk_xattr_listent()
166 if (!xchk_fblock_process_error(sx->sc, XFS_ATTR_FORK, args.blkno, in xchk_xattr_listent()
170 xchk_fblock_set_corrupt(sx->sc, XFS_ATTR_FORK, in xchk_xattr_listent()
173 if (sx->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_listent()
477 struct xchk_xattr sx; in xchk_xattr() local
484 memset(&sx, 0, sizeof(sx)); in xchk_xattr()
495 sx.context.dp = sc->ip; in xchk_xattr()
496 sx.context.resynch = 1; in xchk_xattr()
497 sx.context.put_listent = xchk_xattr_listent; in xchk_xattr()
498 sx.context.tp = sc->tp; in xchk_xattr()
499 sx.context.allow_incomplete = true; in xchk_xattr()
500 sx.sc = sc; in xchk_xattr()
518 error = xfs_attr_list_ilocked(&sx.context); in xchk_xattr()
523 if (sx.context.seen_enough < 0) in xchk_xattr()
524 error = sx.context.seen_enough; in xchk_xattr()