X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjffs2%2Fbackground.c;h=1be6de27dd81142842be0acc56e1a94533580d54;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ac59ee35da656fd788a6f0938d2c1ef418eae068;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index ac59ee35d..1be6de27d 100644 --- a/fs/jffs2/background.c +++ b/fs/jffs2/background.c @@ -3,11 +3,11 @@ * * Copyright (C) 2001-2003 Red Hat, Inc. * - * Created by David Woodhouse + * Created by David Woodhouse * * 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 #include #include -#include #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();