writeback: initialize global_dirty_limit
authorFengguang Wu <fengguang.wu@intel.com>
Sun, 6 May 2012 05:21:42 +0000 (13:21 +0800)
committerFengguang Wu <fengguang.wu@intel.com>
Sun, 6 May 2012 05:41:58 +0000 (13:41 +0800)
commit68809c7108b9a75baf2a888b1c19ce1a4680f600
tree72dac532abb4f42d197023a0495952c387c835ce
parent4cd9069a0a0e5fb8b007425c937642682ac96c76
writeback: initialize global_dirty_limit

This prevents global_dirty_limit from remaining 0 (the initial value)
for long time, since it's only updated in update_dirty_limit() when
above the dirty freerun area.

It will avoid unexpected consequences when some random code use it as a
convenient approximation of the global dirty threshold.

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
mm/page-writeback.c