Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253009
b: refs/heads/master
c: 781c571
h: refs/heads/master
i:
  253007: 1773e7f
v: v3
  • Loading branch information
Ben Gardiner authored and Artem Bityutskiy committed Jun 3, 2011
1 parent 085a3d6 commit 78b984b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 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: 4f1ab9b01d34eac9fc958f7150d3bf266dcc1685
refs/heads/master: 781c5717a95a74b294beb38b8276943b0f8b5bb4
29 changes: 16 additions & 13 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,31 +1282,34 @@ 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;
if (!c->ro_mount) {
err = ubifs_recover_inl_heads(c, c->sbuf);
if (err)
goto out_master;
}
} else if (!c->ro_mount) {
}

init_constants_master(c);

if (c->need_recovery && !c->ro_mount) {
err = ubifs_recover_inl_heads(c, c->sbuf);
if (err)
goto out_master;
}

err = ubifs_lpt_init(c, 1, !c->ro_mount);
if (err)
goto out_master;

if (!c->ro_mount) {
/*
* Set the "dirty" flag so that if we reboot uncleanly we
* will notice this immediately on the next mount.
*/
c->mst_node->flags |= cpu_to_le32(UBIFS_MST_DIRTY);
err = ubifs_write_master(c);
if (err)
goto out_master;
goto out_lpt;
}

err = ubifs_lpt_init(c, 1, !c->ro_mount);
if (err)
goto out_lpt;

err = dbg_check_idx_size(c, c->bi.old_idx_sz);
if (err)
goto out_lpt;
Expand Down

0 comments on commit 78b984b

Please sign in to comment.