Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253010
b: refs/heads/master
c: 0980119
h: refs/heads/master
v: v3
  • Loading branch information
Ben Gardiner authored and Artem Bityutskiy committed Jun 3, 2011
1 parent 78b984b commit b093603
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 781c5717a95a74b294beb38b8276943b0f8b5bb4
refs/heads/master: 098011940a2549ae7182db4bf101c3e3d2b4e6df
16 changes: 8 additions & 8 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,13 +1282,13 @@ static int mount_ubifs(struct ubifs_info *c)
if (err)
goto out_master;

init_constants_master(c);

if ((c->mst_node->flags & cpu_to_le32(UBIFS_MST_DIRTY)) != 0) {
ubifs_msg("recovery needed");
c->need_recovery = 1;
}

init_constants_master(c);

if (c->need_recovery && !c->ro_mount) {
err = ubifs_recover_inl_heads(c, c->sbuf);
if (err)
Expand All @@ -1299,6 +1299,12 @@ static int mount_ubifs(struct ubifs_info *c)
if (err)
goto out_master;

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

if (!c->ro_mount) {
/*
* Set the "dirty" flag so that if we reboot uncleanly we
Expand Down Expand Up @@ -1402,12 +1408,6 @@ 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

0 comments on commit b093603

Please sign in to comment.