diff options
-rw-r--r-- | fs/xfs/xfs_trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 2eb6027762f2..d3d714e6b32a 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -1027,10 +1027,10 @@ xfs_trans_cancel( | |||
1027 | * filesystem. This happens in paths where we detect | 1027 | * filesystem. This happens in paths where we detect |
1028 | * corruption and decide to give up. | 1028 | * corruption and decide to give up. |
1029 | */ | 1029 | */ |
1030 | if ((tp->t_flags & XFS_TRANS_DIRTY) && | 1030 | if ((tp->t_flags & XFS_TRANS_DIRTY) && !XFS_FORCED_SHUTDOWN(mp)) { |
1031 | !XFS_FORCED_SHUTDOWN(mp)) | ||
1032 | XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp); | 1031 | XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp); |
1033 | xfs_force_shutdown(mp, XFS_CORRUPT_INCORE); | 1032 | xfs_force_shutdown(mp, XFS_CORRUPT_INCORE); |
1033 | } | ||
1034 | #ifdef DEBUG | 1034 | #ifdef DEBUG |
1035 | if (!(flags & XFS_TRANS_ABORT)) { | 1035 | if (!(flags & XFS_TRANS_ABORT)) { |
1036 | licp = &(tp->t_items); | 1036 | licp = &(tp->t_items); |