Loading fs/ubifs/tnc_commit.c +18 −19 Original line number Diff line number Diff line Loading @@ -372,12 +372,15 @@ 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 (err != -ENOSPC) { 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. * 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); Loading @@ -389,10 +392,6 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt) err = 0; break; } kfree(c->gap_lebs); c->gap_lebs = NULL; return err; } p++; cnt -= written; leb_needed_cnt = get_leb_cnt(c, cnt); Loading Loading
fs/ubifs/tnc_commit.c +18 −19 Original line number Diff line number Diff line Loading @@ -372,12 +372,15 @@ 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 (err != -ENOSPC) { 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. * 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); Loading @@ -389,10 +392,6 @@ static int layout_in_gaps(struct ubifs_info *c, int cnt) err = 0; break; } kfree(c->gap_lebs); c->gap_lebs = NULL; return err; } p++; cnt -= written; leb_needed_cnt = get_leb_cnt(c, cnt); Loading