diff options
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 8c830a48165a..5dbca95598e0 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -1263,6 +1263,7 @@ xfs_free_eofblocks( | |||
1263 | error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, | 1263 | error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, |
1264 | ip->i_size); | 1264 | ip->i_size); |
1265 | if (error) { | 1265 | if (error) { |
1266 | xfs_trans_cancel(tp, 0); | ||
1266 | if (use_iolock) | 1267 | if (use_iolock) |
1267 | xfs_iunlock(ip, XFS_IOLOCK_EXCL); | 1268 | xfs_iunlock(ip, XFS_IOLOCK_EXCL); |
1268 | return error; | 1269 | return error; |
@@ -1687,6 +1688,7 @@ xfs_inactive( | |||
1687 | 1688 | ||
1688 | error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, 0); | 1689 | error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, 0); |
1689 | if (error) { | 1690 | if (error) { |
1691 | xfs_trans_cancel(tp, 0); | ||
1690 | xfs_iunlock(ip, XFS_IOLOCK_EXCL); | 1692 | xfs_iunlock(ip, XFS_IOLOCK_EXCL); |
1691 | return VN_INACTIVE_CACHE; | 1693 | return VN_INACTIVE_CACHE; |
1692 | } | 1694 | } |