writeback: fix uninitialized task_ratelimit
authorWu Fengguang <fengguang.wu@intel.com>
Mon, 7 Nov 2011 11:19:28 +0000 (19:19 +0800)
committerWu Fengguang <fengguang.wu@intel.com>
Mon, 7 Nov 2011 11:19:28 +0000 (19:19 +0800)
commit3a73dbbc9bb3fc8594cd67af4db6c563175dfddb
treee5120c19fd8e83a38d5c0852336a92c5b7862c6a
parent31555213f03bca37d2c02e10946296052f4ecfcd
writeback: fix uninitialized task_ratelimit

In balance_dirty_pages() task_ratelimit may be not initialized
(initialization skiped by goto pause), and then used when calling
tracing hook.

Fix it by moving the task_ratelimit assignment before goto pause.

Reported-by: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
mm/page-writeback.c