• Home
  • Raw
  • Download

Lines Matching refs:sc

30 	struct xfs_scrub	*sc,  in xchk_setup_xattr_buf()  argument
35 struct xchk_xattr_buf *ab = sc->buf; in xchk_setup_xattr_buf()
42 sz = 3 * sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_setup_xattr_buf()
53 sc->buf = NULL; in xchk_setup_xattr_buf()
65 sc->buf = ab; in xchk_setup_xattr_buf()
72 struct xfs_scrub *sc) in xchk_setup_xattr() argument
81 if (sc->flags & XCHK_TRY_HARDER) { in xchk_setup_xattr()
82 error = xchk_setup_xattr_buf(sc, XATTR_SIZE_MAX, GFP_KERNEL); in xchk_setup_xattr()
87 return xchk_setup_inode_contents(sc, 0); in xchk_setup_xattr()
94 struct xfs_scrub *sc; member
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()
187 struct xfs_scrub *sc, in xchk_xattr_set_map() argument
192 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_set_map()
215 struct xfs_scrub *sc, in xchk_xattr_check_freemap() argument
219 unsigned long *freemap = xchk_xattr_freemap(sc); in xchk_xattr_check_freemap()
220 unsigned long *dstmap = xchk_xattr_dstmap(sc); in xchk_xattr_check_freemap()
221 unsigned int mapsize = sc->mp->m_attr_geo->blksize; in xchk_xattr_check_freemap()
227 if (!xchk_xattr_set_map(sc, freemap, in xchk_xattr_check_freemap()
254 unsigned long *usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_entry()
294 if (!xchk_xattr_set_map(ds->sc, usedmap, nameidx, namesize)) in xchk_xattr_entry()
296 if (!(ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_xattr_entry()
327 error = xchk_setup_xattr_buf(ds->sc, 0, in xchk_xattr_block()
333 usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_block()
339 if (xfs_has_crc(ds->sc->mp)) { in xchk_xattr_block()
360 if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) in xchk_xattr_block()
363 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
374 if (!xchk_xattr_set_map(ds->sc, usedmap, off, in xchk_xattr_block()
384 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_block()
388 if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) in xchk_xattr_block()
425 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr_rec()
475 struct xfs_scrub *sc) in xchk_xattr() argument
481 if (!xfs_inode_hasattr(sc->ip)) in xchk_xattr()
486 error = xchk_da_btree(sc, XFS_ATTR_FORK, xchk_xattr_rec, in xchk_xattr()
491 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_xattr()
495 sx.context.dp = sc->ip; in xchk_xattr()
498 sx.context.tp = sc->tp; in xchk_xattr()
500 sx.sc = sc; in xchk_xattr()
519 if (!xchk_fblock_process_error(sc, XFS_ATTR_FORK, 0, &error)) in xchk_xattr()