|
@@ -174,7 +174,6 @@ static int do_commit(struct ubifs_info *c)
|
|
if (err)
|
|
if (err)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- mutex_lock(&c->mst_mutex);
|
|
|
|
c->mst_node->cmt_no = cpu_to_le64(c->cmt_no);
|
|
c->mst_node->cmt_no = cpu_to_le64(c->cmt_no);
|
|
c->mst_node->log_lnum = cpu_to_le32(new_ltail_lnum);
|
|
c->mst_node->log_lnum = cpu_to_le32(new_ltail_lnum);
|
|
c->mst_node->root_lnum = cpu_to_le32(zroot.lnum);
|
|
c->mst_node->root_lnum = cpu_to_le32(zroot.lnum);
|
|
@@ -204,7 +203,6 @@ static int do_commit(struct ubifs_info *c)
|
|
else
|
|
else
|
|
c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_NO_ORPHS);
|
|
c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_NO_ORPHS);
|
|
err = ubifs_write_master(c);
|
|
err = ubifs_write_master(c);
|
|
- mutex_unlock(&c->mst_mutex);
|
|
|
|
if (err)
|
|
if (err)
|
|
goto out;
|
|
goto out;
|
|
|
|
|