X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fxfsprogs-dev.git;a=blobdiff_plain;f=repair%2Fphase7.c;h=c2996470cf1e651612ce7e7518e4af01b0abddd3;hp=c2a60a93ea66c59325e5ed86fe9240d0fe862f90;hb=e2dd0e1cc1d097dd14e1a054fdd1f736521a2634;hpb=513f189b894cba692285036284fddf8a9be6160b diff --git a/repair/phase7.c b/repair/phase7.c index c2a60a93e..c2996470c 100644 --- a/repair/phase7.c +++ b/repair/phase7.c @@ -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