aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/recovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/recovery.c')
-rw-r--r--fs/ubifs/recovery.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 3f41a0ce192b..42b4512c46b0 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -1140,12 +1140,11 @@ int ubifs_rcvry_gc_commit(struct ubifs_info *c)
1140 struct ubifs_lprops lp; 1140 struct ubifs_lprops lp;
1141 int err; 1141 int err;
1142 1142
1143 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs);
1144
1143 c->gc_lnum = -1; 1145 c->gc_lnum = -1;
1144 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) { 1146 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size)
1145 dbg_rcvry("no GC head: wbuf->lnum %d, wbuf->offs %d",
1146 wbuf->lnum, wbuf->offs);
1147 return grab_empty_leb(c); 1147 return grab_empty_leb(c);
1148 }
1149 1148
1150 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); 1149 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2);
1151 if (err) { 1150 if (err) {