diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index cd522827f99e..b97710047062 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1782,8 +1782,14 @@ xfs_itruncate_finish( | |||
1782 | xfs_trans_ijoin(ntp, ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); | 1782 | xfs_trans_ijoin(ntp, ip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL); |
1783 | xfs_trans_ihold(ntp, ip); | 1783 | xfs_trans_ihold(ntp, ip); |
1784 | 1784 | ||
1785 | if (!error) | 1785 | if (error) |
1786 | error = xfs_trans_reserve(ntp, 0, | 1786 | return error; |
1787 | /* | ||
1788 | * transaction commit worked ok so we can drop the extra ticket | ||
1789 | * reference that we gained in xfs_trans_dup() | ||
1790 | */ | ||
1791 | xfs_log_ticket_put(ntp->t_ticket); | ||
1792 | error = xfs_trans_reserve(ntp, 0, | ||
1787 | XFS_ITRUNCATE_LOG_RES(mp), 0, | 1793 | XFS_ITRUNCATE_LOG_RES(mp), 0, |
1788 | XFS_TRANS_PERM_LOG_RES, | 1794 | XFS_TRANS_PERM_LOG_RES, |
1789 | XFS_ITRUNCATE_LOG_COUNT); | 1795 | XFS_ITRUNCATE_LOG_COUNT); |