]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix realtime inode reference counting buglet in mkfs proto file code.
authorNathan Scott <nathans@sgi.com>
Sat, 17 Jun 2006 06:13:09 +0000 (06:13 +0000)
committerNathan Scott <nathans@sgi.com>
Sat, 17 Jun 2006 06:13:09 +0000 (06:13 +0000)
Merge of master-melb:xfs-cmds:26270a by kenmcd.

mkfs/proto.c

index 583ef0a526117d32ed2064e6da107fd78cb19da0..5dde9bb12f08d3bcf8c6f2966c1c40c96bd8d667 100644 (file)
@@ -675,6 +675,7 @@ rtinit(
                        (XFS_BM_MAXLEVELS(mp, XFS_DATA_FORK) - 1), 0, 0, 0, 0)))
                res_failed(i);
        libxfs_trans_ijoin(tp, rbmip, 0);
+       libxfs_trans_ihold(tp, rbmip);
        bno = 0;
        XFS_BMAP_INIT(&flist, &first);
        while (bno < mp->m_sb.sb_rbmblocks) {
@@ -711,6 +712,7 @@ rtinit(
                        0, 0, 0, 0)))
                res_failed(i);
        libxfs_trans_ijoin(tp, rsumip, 0);
+       libxfs_trans_ihold(tp, rsumip);
        bno = 0;
        XFS_BMAP_INIT(&flist, &first);
        while (bno < nsumblocks) {