Lines Matching refs:sdc

44 	struct xchk_dir_ctx	*sdc,  in xchk_dir_check_ftype()  argument
49 struct xfs_mount *mp = sdc->sc->mp; in xchk_dir_check_ftype()
56 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_check_ftype()
74 error = xfs_iget(mp, sdc->sc->tp, inum, 0, 0, &ip); in xchk_dir_check_ftype()
77 xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, 0, &error); in xchk_dir_check_ftype()
80 if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_check_ftype()
88 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
113 struct xchk_dir_ctx *sdc; in xchk_dir_actor() local
120 sdc = container_of(dir_iter, struct xchk_dir_ctx, dir_iter); in xchk_dir_actor()
121 ip = sdc->sc->ip; in xchk_dir_actor()
126 if (xchk_should_terminate(sdc->sc, &error)) in xchk_dir_actor()
131 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
137 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
144 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
148 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
156 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
160 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
169 error = xfs_dir_lookup(sdc->sc->tp, ip, &xname, &lookup_ino, NULL); in xchk_dir_actor()
173 if (!xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_actor()
177 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
183 error = xchk_dir_check_ftype(sdc, offset, lookup_ino, type); in xchk_dir_actor()
193 if (error == 0 && sdc->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_dir_actor()
806 struct xchk_dir_ctx sdc = { in xchk_directory() local
867 error = xfs_readdir(sc->tp, sc->ip, &sdc.dir_iter, bufsize); in xchk_directory()
871 if (oldpos == sdc.dir_iter.pos) in xchk_directory()
873 oldpos = sdc.dir_iter.pos; in xchk_directory()