]> err.no Git - linux-2.6/commitdiff
[XFS] Fix a thinko when generating a forced shutdown stack trace.
authorNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:37:00 +0000 (15:37 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:37:00 +0000 (15:37 +1100)
SGI-PV: 929558
SGI-Modid: xfs-linux-melb:xfs-kern:203817a

Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_trans.c

index 2eb6027762f2a046965481a2e9136a9026044cf0..d3d714e6b32a6ff5fc2b800229806ed385aa3a05 100644 (file)
@@ -1027,10 +1027,10 @@ xfs_trans_cancel(
         * filesystem.  This happens in paths where we detect
         * corruption and decide to give up.
         */
-       if ((tp->t_flags & XFS_TRANS_DIRTY) &&
-           !XFS_FORCED_SHUTDOWN(mp))
+       if ((tp->t_flags & XFS_TRANS_DIRTY) && !XFS_FORCED_SHUTDOWN(mp)) {
                XFS_ERROR_REPORT("xfs_trans_cancel", XFS_ERRLEVEL_LOW, mp);
                xfs_force_shutdown(mp, XFS_CORRUPT_INCORE);
+       }
 #ifdef DEBUG
        if (!(flags & XFS_TRANS_ABORT)) {
                licp = &(tp->t_items);