]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - repair/phase7.c
libxfs: remove libxfs_trans_iget
[thirdparty/xfsprogs-dev.git] / repair / phase7.c
index c2a60a93ea66c59325e5ed86fe9240d0fe862f90..c2996470cf1e651612ce7e7518e4af01b0abddd3 100644 (file)
@@ -32,8 +32,7 @@ update_inode_nlinks(
        error = -libxfs_trans_alloc(mp, &M_RES(mp)->tr_remove, nres, 0, 0, &tp);
        ASSERT(error == 0);
 
-       error = -libxfs_trans_iget(mp, tp, ino, 0, 0, &ip);
-
+       error = -libxfs_iget(mp, tp, ino, 0, &ip, &xfs_default_ifork_ops);
        if (error)  {
                if (!no_modify)
                        do_error(
@@ -67,6 +66,7 @@ update_inode_nlinks(
        if (!dirty)  {
                libxfs_trans_cancel(tp);
        } else  {
+               libxfs_trans_ijoin(tp, ip, 0);
                libxfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
                /*
                 * no need to do a bmap finish since