aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/jffs2/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/gc.c b/fs/jffs2/gc.c
index ad271c70aa25..5a2dec2b064c 100644
--- a/fs/jffs2/gc.c
+++ b/fs/jffs2/gc.c
@@ -234,8 +234,8 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)
234 return 0; 234 return 0;
235 235
236 jffs2_dbg(1, "No progress from erasing block; doing GC anyway\n"); 236 jffs2_dbg(1, "No progress from erasing block; doing GC anyway\n");
237 spin_lock(&c->erase_completion_lock);
238 mutex_lock(&c->alloc_sem); 237 mutex_lock(&c->alloc_sem);
238 spin_lock(&c->erase_completion_lock);
239 } 239 }
240 240
241 /* First, work out which block we're garbage-collecting */ 241 /* First, work out which block we're garbage-collecting */