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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/