Lines Matching refs:adopt
314 struct xrep_adoption *adopt) in xrep_adoption_trans_alloc() argument
330 adopt->sc = sc; in xrep_adoption_trans_alloc()
331 adopt->orphanage_blkres = xfs_link_space_res(mp, MAXNAMELEN); in xrep_adoption_trans_alloc()
337 adopt->child_blkres = child_blkres; in xrep_adoption_trans_alloc()
345 adopt->orphanage_blkres + adopt->child_blkres, 0, 0, in xrep_adoption_trans_alloc()
365 adopt->orphanage_blkres, 0, true); in xrep_adoption_trans_alloc()
374 if (adopt->child_blkres) { in xrep_adoption_trans_alloc()
376 adopt->child_blkres, 0, true); in xrep_adoption_trans_alloc()
396 struct xrep_adoption *adopt, in xrep_adoption_compute_name() argument
399 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_compute_name()
405 adopt->xname = xname; in xrep_adoption_compute_name()
433 struct xrep_adoption *adopt) in xrep_adoption_check_dcache() argument
435 struct qstr qname = QSTR_INIT(adopt->xname->name, in xrep_adoption_check_dcache()
436 adopt->xname->len); in xrep_adoption_check_dcache()
437 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_check_dcache()
470 struct xrep_adoption *adopt) in xrep_adoption_zap_dcache() argument
472 struct qstr qname = QSTR_INIT(adopt->xname->name, in xrep_adoption_zap_dcache()
473 adopt->xname->len); in xrep_adoption_zap_dcache()
474 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_zap_dcache()
509 const struct xrep_adoption *adopt) in xrep_adoption_attr_sizeof() argument
513 adopt->xname->len); in xrep_adoption_attr_sizeof()
524 struct xrep_adoption *adopt) in xrep_adoption_move() argument
526 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_move()
530 trace_xrep_adoption_reparent(sc->orphanage, adopt->xname, in xrep_adoption_move()
533 error = xrep_adoption_check_dcache(adopt); in xrep_adoption_move()
543 int sf_size = xrep_adoption_attr_sizeof(adopt); in xrep_adoption_move()
551 error = xfs_dir_createname(sc->tp, sc->orphanage, adopt->xname, in xrep_adoption_move()
552 sc->ip->i_ino, adopt->orphanage_blkres); in xrep_adoption_move()
567 if (adopt->bump_child_nlink) { in xrep_adoption_move()
575 sc->orphanage->i_ino, adopt->child_blkres); in xrep_adoption_move()
582 error = xfs_parent_addname(sc->tp, &adopt->ppargs, in xrep_adoption_move()
583 sc->orphanage, adopt->xname, sc->ip); in xrep_adoption_move()
593 xfs_dir_update_hook(sc->orphanage, sc->ip, 1, adopt->xname); in xrep_adoption_move()
596 xrep_adoption_zap_dcache(adopt); in xrep_adoption_move()
612 struct xrep_adoption *adopt) in xrep_adoption_trans_roll() argument
614 struct xfs_scrub *sc = adopt->sc; in xrep_adoption_trans_roll()