]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: account NR_WRITTEN at IO completion time
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 26 Jul 2011 00:12:37 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:11 +0000 (20:57 -0700)
commit37a6597833d28119f5eed38e8bb5717fc905c45d
tree2aa21f5b5a6e03e49cd7af4dbd1b38ec451b09d7
parenta3d885b14ca46a36b760e32ff10c1f7113fdb7ed
writeback: account NR_WRITTEN at IO completion time

NR_WRITTEN is now accounted at block IO enqueue time, which is not very
accurate as to common understanding.  This moves NR_WRITTEN accounting to
the IO completion time and makes it more consistent with BDI_WRITTEN,
which is used for bandwidth estimation.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Michael Rubin <mrubin@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c