Skip to content

Commit

Permalink
UBIFS: minor tweaks in commit
Browse files Browse the repository at this point in the history
No functional changes, just lessen the amount of indentations.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Aug 13, 2008
1 parent b364b41 commit 0010f18
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions fs/ubifs/tnc_commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,26 +372,25 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt)
written = layout_leb_in_gaps(c, p);
if (written < 0) {
err = written;
if (err == -ENOSPC) {
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");
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;
if (err != -ENOSPC) {
kfree(c->gap_lebs);
c->gap_lebs = NULL;
return err;
}
kfree(c->gap_lebs);
c->gap_lebs = NULL;
return err;
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");
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++;
cnt -= written;
Expand Down

0 comments on commit 0010f18

Please sign in to comment.