Lines Matching full:sdc
45 struct xchk_dir_ctx *sdc, in xchk_dir_check_ftype() argument
50 struct xfs_mount *mp = sdc->sc->mp; in xchk_dir_check_ftype()
57 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_check_ftype()
70 error = xfs_iget(mp, sdc->sc->tp, inum, 0, 0, &ip); in xchk_dir_check_ftype()
71 if (!xchk_fblock_xref_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_check_ftype()
79 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
104 struct xchk_dir_ctx *sdc; in xchk_dir_actor() local
110 sdc = container_of(dir_iter, struct xchk_dir_ctx, dir_iter); in xchk_dir_actor()
111 ip = sdc->sc->ip; in xchk_dir_actor()
116 if (xchk_should_terminate(sdc->sc, &error)) in xchk_dir_actor()
121 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
127 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
134 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
137 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, in xchk_dir_actor()
145 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()
157 error = xfs_dir_lookup(sdc->sc->tp, ip, &xname, &lookup_ino, NULL); in xchk_dir_actor()
161 if (!xchk_fblock_process_error(sdc->sc, XFS_DATA_FORK, offset, in xchk_dir_actor()
165 xchk_fblock_set_corrupt(sdc->sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
170 error = xchk_dir_check_ftype(sdc, offset, lookup_ino, type); in xchk_dir_actor()
179 if (error == 0 && sdc->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_dir_actor()
792 struct xchk_dir_ctx sdc = { in xchk_directory() local
853 error = xfs_readdir(sc->tp, sc->ip, &sdc.dir_iter, bufsize); in xchk_directory()
857 if (oldpos == sdc.dir_iter.pos) in xchk_directory()
859 oldpos = sdc.dir_iter.pos; in xchk_directory()