]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/phase6.c
xfs_repair: call IRELE(ip) after libxfs_trans_iget calls
authorEric Sandeen <sandeen@sandeen.net>
Mon, 24 Aug 2015 01:52:45 +0000 (11:52 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 24 Aug 2015 01:52:45 +0000 (11:52 +1000)
commit4491caa3975807766c6e084aa4580b3cfd8b5582
treee9c104264949ccf8da9d5fdd38825e635527f0d4
parent0a223eb8b53c5ff0f656161ac370ef489b156960
xfs_repair: call IRELE(ip) after libxfs_trans_iget calls

Commit 260c85e libxfs: dont free xfs_inode until complete
changed the alloc/free convention a bit:

    Originally, the xfs_inode are released upon the first
    call to xfs_trans_cancel, xfs_trans_commit, or
    inode_item_done.
    <snip>
    This patch does the following:
     1) Removes the iput from the transaction completion and
        requires that the xfs_inode allocators call IRELE()
        when they are done with the pointer.

But that change missed several callers in xfs_repair phase6;
fix that up.

Addresses-Coverity-Id: 1315100
Addresses-Coverity-Id: 1315101
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/phase6.c