UBIFS: get rid of dbg_dump_stack
In case of errors we almost always need the stack dump - it makes no sense
to compile it out. Remove the 'dbg_dump_stack()' function completely.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c
index 16ad84d..2e0bc4e 100644
--- a/fs/ubifs/tnc.c
+++ b/fs/ubifs/tnc.c
@@ -339,7 +339,7 @@
err = ubifs_validate_entry(c, dent);
if (err) {
- dbg_dump_stack();
+ dump_stack();
dbg_dump_node(c, dent);
return err;
}
@@ -372,7 +372,7 @@
err = ubifs_validate_entry(c, node);
if (err) {
- dbg_dump_stack();
+ dump_stack();
dbg_dump_node(c, node);
return err;
}
@@ -1734,7 +1734,7 @@
out:
ubifs_err("bad node at LEB %d:%d", zbr->lnum, zbr->offs);
dbg_dump_node(c, buf);
- dbg_dump_stack();
+ dump_stack();
return err;
}
@@ -1775,7 +1775,7 @@
if (err && err != -EBADMSG) {
ubifs_err("failed to read from LEB %d:%d, error %d",
lnum, offs, err);
- dbg_dump_stack();
+ dump_stack();
dbg_tnck(&bu->key, "key ");
return err;
}
@@ -3336,7 +3336,7 @@
((loff_t)block) << UBIFS_BLOCK_SHIFT);
mutex_unlock(&c->tnc_mutex);
dbg_dump_inode(c, inode);
- dbg_dump_stack();
+ dump_stack();
return -EINVAL;
out_unlock: