Skip to content

Commit

Permalink
UBIFS: always print stacktrace when switching to R/O mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Artem Bityutskiy authored and dedekind committed Jul 4, 2011
1 parent 891a54a commit d033c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit d033c98

Please sign in to comment.