vserver 1.9.5.x5
[linux-2.6.git] / fs / jffs2 / background.c
index ac59ee3..1be6de2 100644 (file)
@@ -3,11 +3,11 @@
  *
  * Copyright (C) 2001-2003 Red Hat, Inc.
  *
- * Created by David Woodhouse <dwmw2@redhat.com>
+ * Created by David Woodhouse <dwmw2@infradead.org>
  *
  * For licensing information, see the file 'LICENCE' in this directory.
  *
- * $Id: background.c,v 1.49 2004/07/13 08:56:40 dwmw2 Exp $
+ * $Id: background.c,v 1.50 2004/11/16 20:36:10 dwmw2 Exp $
  *
  */
 
@@ -15,7 +15,6 @@
 #include <linux/jffs2.h>
 #include <linux/mtd/mtd.h>
 #include <linux/completion.h>
-#include <linux/suspend.h>
 #include "nodelist.h"
 
 
@@ -93,12 +92,8 @@ static int jffs2_garbage_collect_thread(void *_c)
                        schedule();
                }
 
-               if (current->flags & PF_FREEZE) {
-                       refrigerator(0);
-                       /* refrigerator() should recalc sigpending for us
-                          but doesn't. No matter - allow_signal() will. */
+               if (try_to_freeze(0))
                        continue;
-               }
 
                cond_resched();