X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjffs2%2Fbackground.c;h=7b77a9541125b7b62aa01d0cf3961f45cb1ca47c;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=ff2a872e80e78677de43baaf8acc758299106ec0;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index ff2a872e8..7b77a9541 100644 --- a/fs/jffs2/background.c +++ b/fs/jffs2/background.c @@ -35,7 +35,8 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c) pid_t pid; int ret = 0; - BUG_ON(c->gc_task); + if (c->gc_task) + BUG(); init_completion(&c->gc_thread_start); init_completion(&c->gc_thread_exit);