Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250462
b: refs/heads/master
c: 9d510db
h: refs/heads/master
v: v3
  • Loading branch information
Matthew L. Creech authored and Artem Bityutskiy committed May 16, 2011
1 parent 5f1f230 commit d0e984a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6554a6578131a217d4ea6d779a62f120081a2e8b
refs/heads/master: 9d510db423303b4f3555074dd7bdd0d692e432a4
13 changes: 13 additions & 0 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,12 @@ static int mount_ubifs(struct ubifs_info *c)
} else
ubifs_assert(c->lst.taken_empty_lebs > 0);

if (!c->ro_mount && c->space_fixup) {
err = ubifs_fixup_free_space(c);
if (err)
goto out_infos;
}

err = dbg_check_filesystem(c);
if (err)
goto out_infos;
Expand Down Expand Up @@ -1686,6 +1692,13 @@ static int ubifs_remount_rw(struct ubifs_info *c)
*/
err = dbg_check_space_info(c);
}

if (c->space_fixup) {
err = ubifs_fixup_free_space(c);
if (err)
goto out;
}

mutex_unlock(&c->umount_mutex);
return err;

Expand Down

0 comments on commit d0e984a

Please sign in to comment.