lkml.org 
[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] [6/48] Suspend2 2.1.9.8 for 2.6.12: 351-syncthreads.patch
    Date
    From
    diff -ruNp 352-disable-pdflush-during-suspend.patch-old/mm/page-writeback.c 352-disable-pdflush-during-suspend.patch-new/mm/page-writeback.c
    --- 352-disable-pdflush-during-suspend.patch-old/mm/page-writeback.c 2005-06-20 11:47:32.000000000 +1000
    +++ 352-disable-pdflush-during-suspend.patch-new/mm/page-writeback.c 2005-07-04 23:14:19.000000000 +1000
    @@ -29,6 +29,7 @@
    #include <linux/sysctl.h>
    #include <linux/cpu.h>
    #include <linux/syscalls.h>
    +#include <linux/suspend.h>

    /*
    * The maximum number of pages to writeout in a single bdflush/kupdate
    @@ -404,6 +405,12 @@ static void wb_kupdate(unsigned long arg
    .for_kupdate = 1,
    };

    + if (test_suspend_state(SUSPEND_DISABLE_SYNCING)) {
    + start_jif = jiffies;
    + next_jif = start_jif + (dirty_writeback_centisecs * HZ) / 100;
    + goto out;
    + }
    +
    sync_supers();

    get_writeback_state(&wbs);
    @@ -424,6 +431,8 @@ static void wb_kupdate(unsigned long arg
    }
    nr_to_write -= MAX_WRITEBACK_PAGES - wbc.nr_to_write;
    }
    +
    +out:
    if (time_before(next_jif, jiffies + HZ))
    next_jif = jiffies + HZ;
    if (dirty_writeback_centisecs)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-07-06 04:33    [W:4.070 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site