UBIFS: always print stacktrace when switching to R/O mode
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 3 Jun 2011 10:16:08 +0000 (13:16 +0300)
committerArtem Bityutskiy <dedekind1@gmail.com>
Mon, 4 Jul 2011 07:54:33 +0000 (10:54 +0300)
When switching to R/O mode due to an I/O error, always dump the stack, not only
when debugging is enabled.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c

index 3be645e..48e1680 100644 (file)
@@ -86,7 +86,7 @@ void ubifs_ro_mode(struct ubifs_info *c, int err)
                c->no_chk_data_crc = 0;
                c->vfs_sb->s_flags |= MS_RDONLY;
                ubifs_warn("switched to read-only mode, error %d", err);
-               dbg_dump_stack();
+               dump_stack();
        }
 }