UBIFS: make force in-the-gaps to be a general self-check
UBIFS can force itself to use the 'in-the-gaps' commit method - the last resort method which is normally invoced very very rarely. Currently this "force int-the-gaps" debugging feature is a separate test mode. But it is a bit saner to make it to be the "general" self-test check instead. This patch is just a clean-up which should make the debugging code look a bit nicer and easier to use - we have way too many debugging options. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
@@ -377,12 +377,12 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt)
|
||||
c->gap_lebs = NULL;
|
||||
return err;
|
||||
}
|
||||
if (!dbg_force_in_the_gaps_enabled) {
|
||||
if (dbg_force_in_the_gaps_enabled()) {
|
||||
/*
|
||||
* Do not print scary warnings if the debugging
|
||||
* option which forces in-the-gaps is enabled.
|
||||
*/
|
||||
ubifs_err("out of space");
|
||||
ubifs_warn("out of space");
|
||||
dbg_dump_budg(c, &c->bi);
|
||||
dbg_dump_lprops(c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user