aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/commit.c')
-rw-r--r--fs/ubifs/commit.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c
index aa13ad053b14..26b69b2d4a45 100644
--- a/fs/ubifs/commit.c
+++ b/fs/ubifs/commit.c
@@ -166,10 +166,6 @@ static int do_commit(struct ubifs_info *c)
166 err = ubifs_orphan_end_commit(c); 166 err = ubifs_orphan_end_commit(c);
167 if (err) 167 if (err)
168 goto out; 168 goto out;
169 old_ltail_lnum = c->ltail_lnum;
170 err = ubifs_log_end_commit(c, new_ltail_lnum);
171 if (err)
172 goto out;
173 err = dbg_check_old_index(c, &zroot); 169 err = dbg_check_old_index(c, &zroot);
174 if (err) 170 if (err)
175 goto out; 171 goto out;
@@ -202,7 +198,9 @@ static int do_commit(struct ubifs_info *c)
202 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS); 198 c->mst_node->flags |= cpu_to_le32(UBIFS_MST_NO_ORPHS);
203 else 199 else
204 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_NO_ORPHS); 200 c->mst_node->flags &= ~cpu_to_le32(UBIFS_MST_NO_ORPHS);
205 err = ubifs_write_master(c); 201
202 old_ltail_lnum = c->ltail_lnum;
203 err = ubifs_log_end_commit(c, new_ltail_lnum);
206 if (err) 204 if (err)
207 goto out; 205 goto out;
208 206