From: Artem Bityutskiy Date: Tue, 24 May 2011 11:10:03 +0000 (+0300) Subject: UBIFS: dump stack when pnode or nnode reading fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bfcf677decd8051c305b1d8fda407d069c2361e3;p=linux-beck.git UBIFS: dump stack when pnode or nnode reading fails When we fail to read a pnode or nnode - print stacktrace if debugging is enabled. Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index ef5155e109a2..04713cd22679 100644 --- a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c @@ -1247,6 +1247,7 @@ int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) out: ubifs_err("error %d reading nnode at %d:%d", err, lnum, offs); + dbg_dump_stack(); kfree(nnode); return err; } @@ -1312,6 +1313,7 @@ static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) out: ubifs_err("error %d reading pnode at %d:%d", err, lnum, offs); dbg_dump_pnode(c, pnode, parent, iip); + dbg_dump_stack(); dbg_msg("calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); kfree(pnode); return err;