/linux-6.12.1/fs/xfs/scrub/ |
D | tempfile.c | 66 ASSERT(sc->tempip == NULL); in xrep_tempfile_create() 94 error = xfs_icreate(tp, ino, &args, &sc->tempip); in xrep_tempfile_create() 99 sc->tempip->i_diflags &= ~(XFS_DIFLAG_REALTIME | XFS_DIFLAG_RTINHERIT); in xrep_tempfile_create() 100 xfs_trans_log_inode(tp, sc->tempip, XFS_ILOG_CORE); in xrep_tempfile_create() 107 VFS_I(sc->tempip)->i_flags |= S_PRIVATE; in xrep_tempfile_create() 108 VFS_I(sc->tempip)->i_opflags &= ~IOP_XATTR; in xrep_tempfile_create() 111 error = xfs_dir_init(tp, sc->tempip, dp); in xrep_tempfile_create() 114 } else if (S_ISLNK(VFS_I(sc->tempip)->i_mode)) { in xrep_tempfile_create() 122 error = xfs_symlink_write_target(tp, sc->tempip, in xrep_tempfile_create() 123 sc->tempip->i_ino, ".", 1, 0, 0); in xrep_tempfile_create() [all …]
|
D | symlink_repair.c | 286 error = xfs_bmap_local_to_extents(sc->tp, sc->tempip, 1, in xrep_symlink_swap_prep() 333 temp_local = sc->tempip->i_df.if_format == XFS_DINODE_FMT_LOCAL; in xrep_symlink_swap() 341 sc->tempip->i_disk_size <= xfs_inode_data_fork_size(sc->ip)) { in xrep_symlink_swap() 363 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->tempip, XFS_DATA_FORK); in xrep_symlink_reset_fork() 368 error = xrep_reap_ifork(sc, sc->tempip, XFS_DATA_FORK); in xrep_symlink_reset_fork() 373 trace_xrep_symlink_reset_fork(sc->tempip); in xrep_symlink_reset_fork() 377 return xfs_symlink_write_target(sc->tp, sc->tempip, sc->tempip->i_ino, in xrep_symlink_reset_fork() 416 xfs_trans_ijoin(sc->tp, sc->tempip, 0); in xrep_symlink_rebuild() 425 error = xfs_trans_reserve_quota_nblks(sc->tp, sc->tempip, resblks, 0, in xrep_symlink_rebuild() 431 xfs_idestroy_fork(&sc->tempip->i_df); in xrep_symlink_rebuild() [all …]
|
D | attr_repair.c | 616 .dp = rx->sc->tempip, in xrep_xattr_insert_rec() 662 trace_xrep_xattr_insert_pptr(rx->sc->tempip, key->flags, in xrep_xattr_insert_rec() 667 trace_xrep_xattr_insert_rec(rx->sc->tempip, key->flags, in xrep_xattr_insert_rec() 807 struct xfs_ifork *ifp = &sc->tempip->i_af; in xrep_xattr_full_reset() 810 trace_xrep_xattr_full_reset(sc->ip, sc->tempip); in xrep_xattr_full_reset() 813 if (sc->tempip->i_df.if_format == XFS_DINODE_FMT_BTREE) { in xrep_xattr_full_reset() 827 xfs_trans_ijoin(sc->tp, sc->tempip, 0); in xrep_xattr_full_reset() 833 if (xfs_ifork_has_extents(&sc->tempip->i_af)) { in xrep_xattr_full_reset() 834 error = xrep_reap_ifork(sc, sc->tempip, XFS_ATTR_FORK); in xrep_xattr_full_reset() 840 xfs_idata_realloc(sc->tempip, sizeof(*hdr), XFS_ATTR_FORK); in xrep_xattr_full_reset() [all …]
|
D | dir_repair.c | 337 trace_xrep_dir_stash_createname(rd->sc->tempip, name, ino); in xrep_dir_stash_createname() 364 trace_xrep_dir_stash_removename(rd->sc->tempip, name, ino); in xrep_dir_stash_removename() 689 struct xfs_inode *dp = rd->sc->tempip; in xrep_dir_replay_createname() 751 xfs_trans_ijoin(rd->sc->tp, rd->sc->tempip, 0); in xrep_dir_replay_update() 762 error = xchk_dir_lookup(rd->sc, rd->sc->tempip, xname, &ino); in xrep_dir_replay_update() 786 error = xchk_dir_lookup(rd->sc, rd->sc->tempip, xname, &ino); in xrep_dir_replay_update() 1160 trace_xrep_dir_stash_createname(sc->tempip, &xfs_name_dotdot, in xrep_dir_scan_dirent() 1388 trace_xrep_dir_stash_createname(sc->tempip, in xrep_dir_live_update() 1394 trace_xrep_dir_stash_removename(sc->tempip, in xrep_dir_live_update() 1419 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->tempip, XFS_DATA_FORK); in xrep_dir_reset_fork() [all …]
|
D | parent_repair.c | 302 trace_xrep_parent_replay_parentadd(sc->tempip, xname, in xrep_parent_replay_update() 305 return xfs_parent_set(sc->tempip, sc->ip->i_ino, xname, in xrep_parent_replay_update() 309 trace_xrep_parent_replay_parentremove(sc->tempip, xname, in xrep_parent_replay_update() 312 return xfs_parent_unset(sc->tempip, sc->ip->i_ino, xname, in xrep_parent_replay_update() 383 trace_xrep_parent_stash_parentadd(rp->sc->tempip, dp, name); in xrep_parent_stash_parentadd() 409 trace_xrep_parent_stash_parentremove(rp->sc->tempip, dp, name); in xrep_parent_stash_parentremove() 964 trace_xrep_parent_stash_xattr(rp->sc->tempip, key.flags, (void *)name, in xrep_parent_stash_xattr() 987 .dp = rp->sc->tempip, in xrep_parent_insert_xattr() 1033 trace_xrep_parent_insert_xattr(rp->sc->tempip, key->flags, in xrep_parent_insert_xattr() 1210 error = xfs_attr_add_fork(sc->tempip, in xrep_parent_ensure_attr_fork()
|
D | rtsummary_repair.c | 134 xfs_trans_ijoin(sc->tp, sc->tempip, 0); in xrep_rtsummary() 172 return xrep_reap_ifork(sc, sc->tempip, XFS_DATA_FORK); in xrep_rtsummary()
|
D | scrub.h | 163 struct xfs_inode *tempip; member
|
D | scrub.c | 190 ASSERT(sc->tempip == sub->sc.tempip); in xchk_scrub_free_subord()
|
D | findparent.c | 159 if (dp == sc->ip || dp == sc->tempip) in xrep_findparent_walk_directory()
|
D | readdir.c | 334 if (dp == sc->tempip) in xchk_dir_lookup()
|
D | reap.c | 1015 ASSERT(ip == sc->ip || ip == sc->tempip); in xrep_reap_ifork()
|
D | trace.h | 2711 __entry->temp_inum = sc->tempip->i_ino; 2738 __entry->ino = sc->tempip->i_ino;
|