[JFFS2] Fix cleanup in case of GC-Task not started
commite2d48b1a98bb5da8d6998ca4db0b20fa46938a11
authorThomas Gleixner <tglx@linutronix.de>
Fri, 20 May 2005 21:37:15 +0000 (20 22:37 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 11:48:38 +0000 (23 13:48 +0200)
tree8b6cb220be02b78a064fa718bb2b5b182907bdf1
parentfb4a90bfcd6d86e8531073c42fae7fde40974f5d
[JFFS2] Fix cleanup in case of GC-Task not started

Do not call wait_for_completion, when the gc task is not there.
Prevent an oops when the gc thread was not started.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
fs/jffs2/background.c