aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-01-10 23:37:00 -0500
committerNathan Scott <nathans@sgi.com>2006-01-10 23:37:00 -0500
commit60a204f096dd67683f3993798e14905ee9828ba5 (patch)
tree04774002024bd658807544fdf7ae7c5b1b5a56db /fs
parent0733af213f2859f7228229f3ac053c025f57d0d5 (diff)
[XFS] Fix a thinko when generating a forced shutdown stack trace.
SGI-PV: 929558 SGI-Modid: xfs-linux-melb:xfs-kern:203817a Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_trans.c4
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);