ANDROID: uid_sys_stats: fix negative write bytes.
authorJin Qian <jinqian@google.com>
Tue, 28 Feb 2017 23:09:42 +0000 (15:09 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commit1d7eb6de57af39750c5196512109c8309defa6c5
tree9be704f07b170336d49d2cf6192a4e273b41cd60
parent6309385d125045325813495274a0965fc353fd9b
ANDROID: uid_sys_stats: fix negative write bytes.

A task can cancel writes made by other tasks. In rare cases,
cancelled_write_bytes is larger than write_bytes if the task
itself didn't make any write. This doesn't affect total size
but may cause confusion when looking at IO usage on individual
tasks.

Bug: 35851986
Change-Id: If6cb549aeef9e248e18d804293401bb2b91918ca
Signed-off-by: Jin Qian <jinqian@google.com>
drivers/misc/uid_sys_stats.c