page-writeback: fix the calculation of the oldest_jif in wb_kupdate()
authorToshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Sun, 17 May 2009 05:56:28 +0000 (22:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 May 2009 23:36:11 +0000 (16:36 -0700)
commit22ef37eed673587ac984965dc88ba94c68873291
tree7bc26e056bcd88a0d62bdaab9f0375343844f9ff
parentcd208bcc7cb0acd851e25c951ec2a9c14b084eab
page-writeback: fix the calculation of the oldest_jif in wb_kupdate()

wb_kupdate() function has a bug on linux-2.6.30-rc5.  This bug causes
generic_sync_sb_inodes() to start to write inodes back much earlier than
our expectations because it miscalculates oldest_jif in wb_kupdate().

This bug was introduced in 704503d836042d4a4c7685b7036e7de0418fbc0f
('mm: fix proc_dointvec_userhz_jiffies "breakage"').

Signed-off-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c