“57fa76f2da05d0fee597b26bbc1f05242252beab”上不存在“fs/git@gitcode.net:openeuler/kernel.git”
提交 87ae3c24 编写于 作者: J Jesper Juhl 提交者: Tim Shimmin

[XFS] Cancel transactions on xfs_itruncate_start error.

SGI-PV: 966502
SGI-Modid: xfs-linux-melb:xfs-kern:28943a
Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NDavid Chinner <dgc@sgi.com>
Signed-off-by: NTim Shimmin <tes@sgi.com>
上级 39726be2
...@@ -1263,6 +1263,7 @@ xfs_free_eofblocks( ...@@ -1263,6 +1263,7 @@ xfs_free_eofblocks(
error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE,
ip->i_size); ip->i_size);
if (error) { if (error) {
xfs_trans_cancel(tp, 0);
if (use_iolock) if (use_iolock)
xfs_iunlock(ip, XFS_IOLOCK_EXCL); xfs_iunlock(ip, XFS_IOLOCK_EXCL);
return error; return error;
...@@ -1687,6 +1688,7 @@ xfs_inactive( ...@@ -1687,6 +1688,7 @@ xfs_inactive(
error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, 0); error = xfs_itruncate_start(ip, XFS_ITRUNC_DEFINITE, 0);
if (error) { if (error) {
xfs_trans_cancel(tp, 0);
xfs_iunlock(ip, XFS_IOLOCK_EXCL); xfs_iunlock(ip, XFS_IOLOCK_EXCL);
return VN_INACTIVE_CACHE; return VN_INACTIVE_CACHE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部