tracing: Fix comment typo and documentation example
[linux-2.6-block.git] / mm / page-writeback.c
index a3b14090b1fb8f296ce9ce2fcec2bd2bbccd8d22..2c5d79236ead88fe692eb97eb0f4ec6b0388753a 100644 (file)
@@ -566,7 +566,8 @@ static void balance_dirty_pages(struct address_space *mapping,
                if (pages_written >= write_chunk)
                        break;          /* We've done our duty */
 
-               schedule_timeout_interruptible(pause);
+               __set_current_state(TASK_INTERRUPTIBLE);
+               io_schedule_timeout(pause);
 
                /*
                 * Increase the delay for each loop, up to our previous