Lines Matching refs:xnc
92 struct xchk_nlink_ctrs *xnc) in xrep_nlinks_repair_inode() argument
95 struct xfs_scrub *sc = xnc->sc; in xrep_nlinks_repair_inode()
122 error = xrep_adoption_trans_alloc(sc, &xnc->adoption); in xrep_nlinks_repair_inode()
150 mutex_lock(&xnc->lock); in xrep_nlinks_repair_inode()
152 if (xchk_iscan_aborted(&xnc->collect_iscan)) { in xrep_nlinks_repair_inode()
157 error = xfarray_load_sparse(xnc->nlinks, ip->i_ino, &obs); in xrep_nlinks_repair_inode()
165 mutex_unlock(&xnc->lock); in xrep_nlinks_repair_inode()
193 error = xrep_adoption_compute_name(&xnc->adoption, &xnc->xname); in xrep_nlinks_repair_inode()
202 error = xrep_adoption_move(&xnc->adoption); in xrep_nlinks_repair_inode()
210 mutex_lock(&xnc->lock); in xrep_nlinks_repair_inode()
211 error = xfarray_load_sparse(xnc->nlinks, ip->i_ino, &obs); in xrep_nlinks_repair_inode()
212 mutex_unlock(&xnc->lock); in xrep_nlinks_repair_inode()
263 mutex_unlock(&xnc->lock); in xrep_nlinks_repair_inode()
282 struct xchk_nlink_ctrs *xnc, in xrep_nlinks_iter() argument
288 error = xchk_iscan_iter(&xnc->compare_iscan, ipp); in xrep_nlinks_iter()
299 struct xchk_nlink_ctrs *xnc = sc->buf; in xrep_nlinks() local
319 xchk_iscan_start(sc, 30000, 100, &xnc->compare_iscan); in xrep_nlinks()
322 while ((error = xrep_nlinks_iter(xnc, &sc->ip)) == 1) { in xrep_nlinks()
329 error = xrep_nlinks_repair_inode(xnc); in xrep_nlinks()
330 xchk_iscan_mark_visited(&xnc->compare_iscan, sc->ip); in xrep_nlinks()
349 xchk_iscan_iter_finish(&xnc->compare_iscan); in xrep_nlinks()
350 xchk_iscan_teardown(&xnc->compare_iscan); in xrep_nlinks()