aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/orphan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c
index b02734db187c..cebf17ea0458 100644
--- a/fs/ubifs/orphan.c
+++ b/fs/ubifs/orphan.c
@@ -176,7 +176,7 @@ int ubifs_orphan_start_commit(struct ubifs_info *c)
176 *last = orphan; 176 *last = orphan;
177 last = &orphan->cnext; 177 last = &orphan->cnext;
178 } 178 }
179 *last = orphan->cnext; 179 *last = NULL;
180 c->cmt_orphans = c->new_orphans; 180 c->cmt_orphans = c->new_orphans;
181 c->new_orphans = 0; 181 c->new_orphans = 0;
182 dbg_cmt("%d orphans to commit", c->cmt_orphans); 182 dbg_cmt("%d orphans to commit", c->cmt_orphans);
@@ -382,7 +382,7 @@ static int consolidate(struct ubifs_info *c)
382 last = &orphan->cnext; 382 last = &orphan->cnext;
383 cnt += 1; 383 cnt += 1;
384 } 384 }
385 *last = orphan->cnext; 385 *last = NULL;
386 ubifs_assert(cnt == c->tot_orphans - c->new_orphans); 386 ubifs_assert(cnt == c->tot_orphans - c->new_orphans);
387 c->cmt_orphans = cnt; 387 c->cmt_orphans = cnt;
388 c->ohead_lnum = c->orph_first; 388 c->ohead_lnum = c->orph_first;