mirror of
https://github.com/torvalds/linux
synced 2024-09-20 11:07:02 +00:00
UBIFS: minor tweaks in commit
No functional changes, just lessen the amount of indentations. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
b364b41aeb
commit
0010f18afc
|
@ -372,26 +372,25 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt)
|
||||||
written = layout_leb_in_gaps(c, p);
|
written = layout_leb_in_gaps(c, p);
|
||||||
if (written < 0) {
|
if (written < 0) {
|
||||||
err = written;
|
err = written;
|
||||||
if (err == -ENOSPC) {
|
if (err != -ENOSPC) {
|
||||||
if (!dbg_force_in_the_gaps_enabled) {
|
kfree(c->gap_lebs);
|
||||||
/*
|
c->gap_lebs = NULL;
|
||||||
* Do not print scary warnings if the
|
return err;
|
||||||
* debugging option which forces
|
|
||||||
* in-the-gaps is enabled.
|
|
||||||
*/
|
|
||||||
ubifs_err("out of space");
|
|
||||||
spin_lock(&c->space_lock);
|
|
||||||
dbg_dump_budg(c);
|
|
||||||
spin_unlock(&c->space_lock);
|
|
||||||
dbg_dump_lprops(c);
|
|
||||||
}
|
|
||||||
/* Try to commit anyway */
|
|
||||||
err = 0;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
kfree(c->gap_lebs);
|
if (!dbg_force_in_the_gaps_enabled) {
|
||||||
c->gap_lebs = NULL;
|
/*
|
||||||
return err;
|
* Do not print scary warnings if the debugging
|
||||||
|
* option which forces in-the-gaps is enabled.
|
||||||
|
*/
|
||||||
|
ubifs_err("out of space");
|
||||||
|
spin_lock(&c->space_lock);
|
||||||
|
dbg_dump_budg(c);
|
||||||
|
spin_unlock(&c->space_lock);
|
||||||
|
dbg_dump_lprops(c);
|
||||||
|
}
|
||||||
|
/* Try to commit anyway */
|
||||||
|
err = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
p++;
|
p++;
|
||||||
cnt -= written;
|
cnt -= written;
|
||||||
|
|
Loading…
Reference in a new issue